AWS v6.71.0 published on Friday, Mar 7, 2025 by Pulumi
aws.licensemanager.getReceivedLicense
Explore with Pulumi AI
This resource can be used to get data on a received license using an ARN. This can be helpful for pulling in data on a license from the AWS marketplace and sharing that license with another account.
Example Usage
The following shows getting the received license data using and ARN.
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = aws.licensemanager.getReceivedLicense({
    licenseArn: "arn:aws:license-manager::111111111111:license:l-ecbaa94eb71a4830b6d7e49268fecaa0",
});
import pulumi
import pulumi_aws as aws
test = aws.licensemanager.get_received_license(license_arn="arn:aws:license-manager::111111111111:license:l-ecbaa94eb71a4830b6d7e49268fecaa0")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/licensemanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := licensemanager.GetReceivedLicense(ctx, &licensemanager.GetReceivedLicenseArgs{
			LicenseArn: "arn:aws:license-manager::111111111111:license:l-ecbaa94eb71a4830b6d7e49268fecaa0",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var test = Aws.LicenseManager.GetReceivedLicense.Invoke(new()
    {
        LicenseArn = "arn:aws:license-manager::111111111111:license:l-ecbaa94eb71a4830b6d7e49268fecaa0",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.licensemanager.LicensemanagerFunctions;
import com.pulumi.aws.licensemanager.inputs.GetReceivedLicenseArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var test = LicensemanagerFunctions.getReceivedLicense(GetReceivedLicenseArgs.builder()
            .licenseArn("arn:aws:license-manager::111111111111:license:l-ecbaa94eb71a4830b6d7e49268fecaa0")
            .build());
    }
}
variables:
  test:
    fn::invoke:
      function: aws:licensemanager:getReceivedLicense
      arguments:
        licenseArn: arn:aws:license-manager::111111111111:license:l-ecbaa94eb71a4830b6d7e49268fecaa0
Using getReceivedLicense
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getReceivedLicense(args: GetReceivedLicenseArgs, opts?: InvokeOptions): Promise<GetReceivedLicenseResult>
function getReceivedLicenseOutput(args: GetReceivedLicenseOutputArgs, opts?: InvokeOptions): Output<GetReceivedLicenseResult>def get_received_license(license_arn: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetReceivedLicenseResult
def get_received_license_output(license_arn: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetReceivedLicenseResult]func GetReceivedLicense(ctx *Context, args *GetReceivedLicenseArgs, opts ...InvokeOption) (*GetReceivedLicenseResult, error)
func GetReceivedLicenseOutput(ctx *Context, args *GetReceivedLicenseOutputArgs, opts ...InvokeOption) GetReceivedLicenseResultOutput> Note: This function is named GetReceivedLicense in the Go SDK.
public static class GetReceivedLicense 
{
    public static Task<GetReceivedLicenseResult> InvokeAsync(GetReceivedLicenseArgs args, InvokeOptions? opts = null)
    public static Output<GetReceivedLicenseResult> Invoke(GetReceivedLicenseInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetReceivedLicenseResult> getReceivedLicense(GetReceivedLicenseArgs args, InvokeOptions options)
public static Output<GetReceivedLicenseResult> getReceivedLicense(GetReceivedLicenseArgs args, InvokeOptions options)
fn::invoke:
  function: aws:licensemanager/getReceivedLicense:getReceivedLicense
  arguments:
    # arguments dictionaryThe following arguments are supported:
- LicenseArn string
- The ARN of the received license you want data for.
- LicenseArn string
- The ARN of the received license you want data for.
- licenseArn String
- The ARN of the received license you want data for.
- licenseArn string
- The ARN of the received license you want data for.
- license_arn str
- The ARN of the received license you want data for.
- licenseArn String
- The ARN of the received license you want data for.
getReceivedLicense Result
The following output properties are available:
- Beneficiary string
- Granted license beneficiary. This is in the form of the ARN of the root user of the account.
- ConsumptionConfigurations List<GetReceived License Consumption Configuration> 
- Configuration for consumption of the license. Detailed below
- CreateTime string
- Creation time of the granted license in RFC 3339 format.
- Entitlements
List<GetReceived License Entitlement> 
- License entitlements. Detailed below
- HomeRegion string
- Home Region of the granted license.
- Id string
- The provider-assigned unique ID for this managed resource.
- Issuers
List<GetReceived License Issuer> 
- Granted license issuer. Detailed below
- LicenseArn string
- Amazon Resource Name (ARN) of the license.
- LicenseMetadatas List<GetReceived License License Metadata> 
- Granted license metadata. This is in the form of a set of all meta data. Detailed below
- LicenseName string
- License name.
- ProductName string
- Product name.- product_sku- Product SKU.
 
- ProductSku string
- ReceivedMetadatas List<GetReceived License Received Metadata> 
- Granted license received metadata. Detailed below
- Status string
- Granted license status.
- Validities
List<GetReceived License Validity> 
- Date and time range during which the granted license is valid, in ISO8601-UTC format. Detailed below
- Version string
- Version of the granted license.
- Beneficiary string
- Granted license beneficiary. This is in the form of the ARN of the root user of the account.
- ConsumptionConfigurations []GetReceived License Consumption Configuration 
- Configuration for consumption of the license. Detailed below
- CreateTime string
- Creation time of the granted license in RFC 3339 format.
- Entitlements
[]GetReceived License Entitlement 
- License entitlements. Detailed below
- HomeRegion string
- Home Region of the granted license.
- Id string
- The provider-assigned unique ID for this managed resource.
- Issuers
[]GetReceived License Issuer 
- Granted license issuer. Detailed below
- LicenseArn string
- Amazon Resource Name (ARN) of the license.
- LicenseMetadatas []GetReceived License License Metadata 
- Granted license metadata. This is in the form of a set of all meta data. Detailed below
- LicenseName string
- License name.
- ProductName string
- Product name.- product_sku- Product SKU.
 
- ProductSku string
- ReceivedMetadatas []GetReceived License Received Metadata 
- Granted license received metadata. Detailed below
- Status string
- Granted license status.
- Validities
[]GetReceived License Validity 
- Date and time range during which the granted license is valid, in ISO8601-UTC format. Detailed below
- Version string
- Version of the granted license.
- beneficiary String
- Granted license beneficiary. This is in the form of the ARN of the root user of the account.
- consumptionConfigurations List<GetReceived License Consumption Configuration> 
- Configuration for consumption of the license. Detailed below
- createTime String
- Creation time of the granted license in RFC 3339 format.
- entitlements
List<GetReceived License Entitlement> 
- License entitlements. Detailed below
- homeRegion String
- Home Region of the granted license.
- id String
- The provider-assigned unique ID for this managed resource.
- issuers
List<GetReceived License Issuer> 
- Granted license issuer. Detailed below
- licenseArn String
- Amazon Resource Name (ARN) of the license.
- licenseMetadatas List<GetReceived License License Metadata> 
- Granted license metadata. This is in the form of a set of all meta data. Detailed below
- licenseName String
- License name.
- productName String
- Product name.- product_sku- Product SKU.
 
- productSku String
- receivedMetadatas List<GetReceived License Received Metadata> 
- Granted license received metadata. Detailed below
- status String
- Granted license status.
- validities
List<GetReceived License Validity> 
- Date and time range during which the granted license is valid, in ISO8601-UTC format. Detailed below
- version String
- Version of the granted license.
- beneficiary string
- Granted license beneficiary. This is in the form of the ARN of the root user of the account.
- consumptionConfigurations GetReceived License Consumption Configuration[] 
- Configuration for consumption of the license. Detailed below
- createTime string
- Creation time of the granted license in RFC 3339 format.
- entitlements
GetReceived License Entitlement[] 
- License entitlements. Detailed below
- homeRegion string
- Home Region of the granted license.
- id string
- The provider-assigned unique ID for this managed resource.
- issuers
GetReceived License Issuer[] 
- Granted license issuer. Detailed below
- licenseArn string
- Amazon Resource Name (ARN) of the license.
- licenseMetadatas GetReceived License License Metadata[] 
- Granted license metadata. This is in the form of a set of all meta data. Detailed below
- licenseName string
- License name.
- productName string
- Product name.- product_sku- Product SKU.
 
- productSku string
- receivedMetadatas GetReceived License Received Metadata[] 
- Granted license received metadata. Detailed below
- status string
- Granted license status.
- validities
GetReceived License Validity[] 
- Date and time range during which the granted license is valid, in ISO8601-UTC format. Detailed below
- version string
- Version of the granted license.
- beneficiary str
- Granted license beneficiary. This is in the form of the ARN of the root user of the account.
- consumption_configurations Sequence[GetReceived License Consumption Configuration] 
- Configuration for consumption of the license. Detailed below
- create_time str
- Creation time of the granted license in RFC 3339 format.
- entitlements
Sequence[GetReceived License Entitlement] 
- License entitlements. Detailed below
- home_region str
- Home Region of the granted license.
- id str
- The provider-assigned unique ID for this managed resource.
- issuers
Sequence[GetReceived License Issuer] 
- Granted license issuer. Detailed below
- license_arn str
- Amazon Resource Name (ARN) of the license.
- license_metadatas Sequence[GetReceived License License Metadata] 
- Granted license metadata. This is in the form of a set of all meta data. Detailed below
- license_name str
- License name.
- product_name str
- Product name.- product_sku- Product SKU.
 
- product_sku str
- received_metadatas Sequence[GetReceived License Received Metadata] 
- Granted license received metadata. Detailed below
- status str
- Granted license status.
- validities
Sequence[GetReceived License Validity] 
- Date and time range during which the granted license is valid, in ISO8601-UTC format. Detailed below
- version str
- Version of the granted license.
- beneficiary String
- Granted license beneficiary. This is in the form of the ARN of the root user of the account.
- consumptionConfigurations List<Property Map>
- Configuration for consumption of the license. Detailed below
- createTime String
- Creation time of the granted license in RFC 3339 format.
- entitlements List<Property Map>
- License entitlements. Detailed below
- homeRegion String
- Home Region of the granted license.
- id String
- The provider-assigned unique ID for this managed resource.
- issuers List<Property Map>
- Granted license issuer. Detailed below
- licenseArn String
- Amazon Resource Name (ARN) of the license.
- licenseMetadatas List<Property Map>
- Granted license metadata. This is in the form of a set of all meta data. Detailed below
- licenseName String
- License name.
- productName String
- Product name.- product_sku- Product SKU.
 
- productSku String
- receivedMetadatas List<Property Map>
- Granted license received metadata. Detailed below
- status String
- Granted license status.
- validities List<Property Map>
- Date and time range during which the granted license is valid, in ISO8601-UTC format. Detailed below
- version String
- Version of the granted license.
Supporting Types
GetReceivedLicenseConsumptionConfiguration    
- BorrowConfigurations List<GetReceived License Consumption Configuration Borrow Configuration> 
- Details about a borrow configuration. Detailed below
- ProvisionalConfigurations List<GetReceived License Consumption Configuration Provisional Configuration> 
- Details about a provisional configuration. Detailed below
- RenewType string
- BorrowConfigurations []GetReceived License Consumption Configuration Borrow Configuration 
- Details about a borrow configuration. Detailed below
- ProvisionalConfigurations []GetReceived License Consumption Configuration Provisional Configuration 
- Details about a provisional configuration. Detailed below
- RenewType string
- borrowConfigurations List<GetReceived License Consumption Configuration Borrow Configuration> 
- Details about a borrow configuration. Detailed below
- provisionalConfigurations List<GetReceived License Consumption Configuration Provisional Configuration> 
- Details about a provisional configuration. Detailed below
- renewType String
- borrowConfigurations GetReceived License Consumption Configuration Borrow Configuration[] 
- Details about a borrow configuration. Detailed below
- provisionalConfigurations GetReceived License Consumption Configuration Provisional Configuration[] 
- Details about a provisional configuration. Detailed below
- renewType string
- borrow_configurations Sequence[GetReceived License Consumption Configuration Borrow Configuration] 
- Details about a borrow configuration. Detailed below
- provisional_configurations Sequence[GetReceived License Consumption Configuration Provisional Configuration] 
- Details about a provisional configuration. Detailed below
- renew_type str
- borrowConfigurations List<Property Map>
- Details about a borrow configuration. Detailed below
- provisionalConfigurations List<Property Map>
- Details about a provisional configuration. Detailed below
- renewType String
GetReceivedLicenseConsumptionConfigurationBorrowConfiguration      
- AllowEarly boolCheck In 
- Indicates whether early check-ins are allowed.
- MaxTime intTo Live In Minutes 
- Maximum time for the provisional configuration, in minutes.
- AllowEarly boolCheck In 
- Indicates whether early check-ins are allowed.
- MaxTime intTo Live In Minutes 
- Maximum time for the provisional configuration, in minutes.
- allowEarly BooleanCheck In 
- Indicates whether early check-ins are allowed.
- maxTime IntegerTo Live In Minutes 
- Maximum time for the provisional configuration, in minutes.
- allowEarly booleanCheck In 
- Indicates whether early check-ins are allowed.
- maxTime numberTo Live In Minutes 
- Maximum time for the provisional configuration, in minutes.
- allow_early_ boolcheck_ in 
- Indicates whether early check-ins are allowed.
- max_time_ intto_ live_ in_ minutes 
- Maximum time for the provisional configuration, in minutes.
- allowEarly BooleanCheck In 
- Indicates whether early check-ins are allowed.
- maxTime NumberTo Live In Minutes 
- Maximum time for the provisional configuration, in minutes.
GetReceivedLicenseConsumptionConfigurationProvisionalConfiguration      
- MaxTime intTo Live In Minutes 
- Maximum time for the provisional configuration, in minutes.
- MaxTime intTo Live In Minutes 
- Maximum time for the provisional configuration, in minutes.
- maxTime IntegerTo Live In Minutes 
- Maximum time for the provisional configuration, in minutes.
- maxTime numberTo Live In Minutes 
- Maximum time for the provisional configuration, in minutes.
- max_time_ intto_ live_ in_ minutes 
- Maximum time for the provisional configuration, in minutes.
- maxTime NumberTo Live In Minutes 
- Maximum time for the provisional configuration, in minutes.
GetReceivedLicenseEntitlement   
GetReceivedLicenseIssuer   
- KeyFingerprint string
- Issuer key fingerprint.
- Name string
- The key name.
- SignKey string
- Asymmetric KMS key from AWS Key Management Service. The KMS key must have a key usage of sign and verify, and support the RSASSA-PSS SHA-256 signing algorithm.
- KeyFingerprint string
- Issuer key fingerprint.
- Name string
- The key name.
- SignKey string
- Asymmetric KMS key from AWS Key Management Service. The KMS key must have a key usage of sign and verify, and support the RSASSA-PSS SHA-256 signing algorithm.
- keyFingerprint String
- Issuer key fingerprint.
- name String
- The key name.
- signKey String
- Asymmetric KMS key from AWS Key Management Service. The KMS key must have a key usage of sign and verify, and support the RSASSA-PSS SHA-256 signing algorithm.
- keyFingerprint string
- Issuer key fingerprint.
- name string
- The key name.
- signKey string
- Asymmetric KMS key from AWS Key Management Service. The KMS key must have a key usage of sign and verify, and support the RSASSA-PSS SHA-256 signing algorithm.
- key_fingerprint str
- Issuer key fingerprint.
- name str
- The key name.
- sign_key str
- Asymmetric KMS key from AWS Key Management Service. The KMS key must have a key usage of sign and verify, and support the RSASSA-PSS SHA-256 signing algorithm.
- keyFingerprint String
- Issuer key fingerprint.
- name String
- The key name.
- signKey String
- Asymmetric KMS key from AWS Key Management Service. The KMS key must have a key usage of sign and verify, and support the RSASSA-PSS SHA-256 signing algorithm.
GetReceivedLicenseLicenseMetadata    
GetReceivedLicenseReceivedMetadata    
- AllowedOperations List<string>
- A list of allowed operations.
- ReceivedStatus string
- Received status.
- ReceivedStatus stringReason 
- Received status reason.
- AllowedOperations []string
- A list of allowed operations.
- ReceivedStatus string
- Received status.
- ReceivedStatus stringReason 
- Received status reason.
- allowedOperations List<String>
- A list of allowed operations.
- receivedStatus String
- Received status.
- receivedStatus StringReason 
- Received status reason.
- allowedOperations string[]
- A list of allowed operations.
- receivedStatus string
- Received status.
- receivedStatus stringReason 
- Received status reason.
- allowed_operations Sequence[str]
- A list of allowed operations.
- received_status str
- Received status.
- received_status_ strreason 
- Received status reason.
- allowedOperations List<String>
- A list of allowed operations.
- receivedStatus String
- Received status.
- receivedStatus StringReason 
- Received status reason.
GetReceivedLicenseValidity   
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.