AWS v6.77.1 published on Friday, Apr 18, 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:
- License
Arn string - The ARN of the received license you want data for.
 
- License
Arn string - The ARN of the received license you want data for.
 
- license
Arn String - The ARN of the received license you want data for.
 
- license
Arn string - The ARN of the received license you want data for.
 
- license_
arn str - The ARN of the received license you want data for.
 
- license
Arn 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.
 - Consumption
Configurations List<GetReceived License Consumption Configuration>  - Configuration for consumption of the license. Detailed below
 - Create
Time string - Creation time of the granted license in RFC 3339 format.
 - Entitlements
List<Get
Received License Entitlement>  - License entitlements. Detailed below
 - Home
Region string - Home Region of the granted license.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Issuers
List<Get
Received License Issuer>  - Granted license issuer. Detailed below
 - License
Arn string - Amazon Resource Name (ARN) of the license.
 - License
Metadatas List<GetReceived License License Metadata>  - Granted license metadata. This is in the form of a set of all meta data. Detailed below
 - License
Name string - License name.
 - Product
Name string - Product name.
product_sku- Product SKU.
 - Product
Sku string - Received
Metadatas List<GetReceived License Received Metadata>  - Granted license received metadata. Detailed below
 - Status string
 - Granted license status.
 - Validities
List<Get
Received 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.
 - Consumption
Configurations []GetReceived License Consumption Configuration  - Configuration for consumption of the license. Detailed below
 - Create
Time string - Creation time of the granted license in RFC 3339 format.
 - Entitlements
[]Get
Received License Entitlement  - License entitlements. Detailed below
 - Home
Region string - Home Region of the granted license.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Issuers
[]Get
Received License Issuer  - Granted license issuer. Detailed below
 - License
Arn string - Amazon Resource Name (ARN) of the license.
 - License
Metadatas []GetReceived License License Metadata  - Granted license metadata. This is in the form of a set of all meta data. Detailed below
 - License
Name string - License name.
 - Product
Name string - Product name.
product_sku- Product SKU.
 - Product
Sku string - Received
Metadatas []GetReceived License Received Metadata  - Granted license received metadata. Detailed below
 - Status string
 - Granted license status.
 - Validities
[]Get
Received 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.
 - consumption
Configurations List<GetReceived License Consumption Configuration>  - Configuration for consumption of the license. Detailed below
 - create
Time String - Creation time of the granted license in RFC 3339 format.
 - entitlements
List<Get
Received License Entitlement>  - License entitlements. Detailed below
 - home
Region String - Home Region of the granted license.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - issuers
List<Get
Received License Issuer>  - Granted license issuer. Detailed below
 - license
Arn String - Amazon Resource Name (ARN) of the license.
 - license
Metadatas List<GetReceived License License Metadata>  - Granted license metadata. This is in the form of a set of all meta data. Detailed below
 - license
Name String - License name.
 - product
Name String - Product name.
product_sku- Product SKU.
 - product
Sku String - received
Metadatas List<GetReceived License Received Metadata>  - Granted license received metadata. Detailed below
 - status String
 - Granted license status.
 - validities
List<Get
Received 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.
 - consumption
Configurations GetReceived License Consumption Configuration[]  - Configuration for consumption of the license. Detailed below
 - create
Time string - Creation time of the granted license in RFC 3339 format.
 - entitlements
Get
Received License Entitlement[]  - License entitlements. Detailed below
 - home
Region string - Home Region of the granted license.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - issuers
Get
Received License Issuer[]  - Granted license issuer. Detailed below
 - license
Arn string - Amazon Resource Name (ARN) of the license.
 - license
Metadatas GetReceived License License Metadata[]  - Granted license metadata. This is in the form of a set of all meta data. Detailed below
 - license
Name string - License name.
 - product
Name string - Product name.
product_sku- Product SKU.
 - product
Sku string - received
Metadatas GetReceived License Received Metadata[]  - Granted license received metadata. Detailed below
 - status string
 - Granted license status.
 - validities
Get
Received 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[Get
Received 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[Get
Received 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[Get
Received 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.
 - consumption
Configurations List<Property Map> - Configuration for consumption of the license. Detailed below
 - create
Time String - Creation time of the granted license in RFC 3339 format.
 - entitlements List<Property Map>
 - License entitlements. Detailed below
 - home
Region 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
 - license
Arn String - Amazon Resource Name (ARN) of the license.
 - license
Metadatas List<Property Map> - Granted license metadata. This is in the form of a set of all meta data. Detailed below
 - license
Name String - License name.
 - product
Name String - Product name.
product_sku- Product SKU.
 - product
Sku String - received
Metadatas 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    
- Borrow
Configurations List<GetReceived License Consumption Configuration Borrow Configuration>  - Details about a borrow configuration. Detailed below
 - Provisional
Configurations List<GetReceived License Consumption Configuration Provisional Configuration>  - Details about a provisional configuration. Detailed below
 - Renew
Type string 
- Borrow
Configurations []GetReceived License Consumption Configuration Borrow Configuration  - Details about a borrow configuration. Detailed below
 - Provisional
Configurations []GetReceived License Consumption Configuration Provisional Configuration  - Details about a provisional configuration. Detailed below
 - Renew
Type string 
- borrow
Configurations List<GetReceived License Consumption Configuration Borrow Configuration>  - Details about a borrow configuration. Detailed below
 - provisional
Configurations List<GetReceived License Consumption Configuration Provisional Configuration>  - Details about a provisional configuration. Detailed below
 - renew
Type String 
- borrow
Configurations GetReceived License Consumption Configuration Borrow Configuration[]  - Details about a borrow configuration. Detailed below
 - provisional
Configurations GetReceived License Consumption Configuration Provisional Configuration[]  - Details about a provisional configuration. Detailed below
 - renew
Type 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 
- borrow
Configurations List<Property Map> - Details about a borrow configuration. Detailed below
 - provisional
Configurations List<Property Map> - Details about a provisional configuration. Detailed below
 - renew
Type String 
GetReceivedLicenseConsumptionConfigurationBorrowConfiguration      
- 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.
 
- 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.
 
- allow
Early BooleanCheck In  - Indicates whether early check-ins are allowed.
 - max
Time IntegerTo Live In Minutes  - Maximum time for the provisional configuration, in minutes.
 
- allow
Early booleanCheck In  - Indicates whether early check-ins are allowed.
 - max
Time 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.
 
- allow
Early BooleanCheck In  - Indicates whether early check-ins are allowed.
 - max
Time NumberTo Live In Minutes  - Maximum time for the provisional configuration, in minutes.
 
GetReceivedLicenseConsumptionConfigurationProvisionalConfiguration      
- Max
Time intTo 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.
 
- max
Time IntegerTo Live In Minutes  - Maximum time for the provisional configuration, in minutes.
 
- max
Time 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.
 
- max
Time NumberTo Live In Minutes  - Maximum time for the provisional configuration, in minutes.
 
GetReceivedLicenseEntitlement   
GetReceivedLicenseIssuer   
- Key
Fingerprint string - Issuer key fingerprint.
 - Name string
 - The key name.
 - Sign
Key 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 string - Issuer key fingerprint.
 - Name string
 - The key name.
 - Sign
Key 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 String - Issuer key fingerprint.
 - name String
 - The key name.
 - sign
Key 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 string - Issuer key fingerprint.
 - name string
 - The key name.
 - sign
Key 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.
 
- key
Fingerprint String - Issuer key fingerprint.
 - name String
 - The key name.
 - sign
Key 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    
- Allowed
Operations List<string> - A list of allowed operations.
 - Received
Status string - Received status.
 - Received
Status stringReason  - Received status reason.
 
- Allowed
Operations []string - A list of allowed operations.
 - Received
Status string - Received status.
 - Received
Status stringReason  - Received status reason.
 
- allowed
Operations List<String> - A list of allowed operations.
 - received
Status String - Received status.
 - received
Status StringReason  - Received status reason.
 
- allowed
Operations string[] - A list of allowed operations.
 - received
Status string - Received status.
 - received
Status stringReason  - Received status reason.
 
- allowed_
operations Sequence[str] - A list of allowed operations.
 - received_
status str - Received status.
 - received_
status_ strreason  - Received status reason.
 
- allowed
Operations List<String> - A list of allowed operations.
 - received
Status String - Received status.
 - received
Status 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.