AWS v6.77.0 published on Wednesday, Apr 9, 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 dictionary
The following arguments are supported:
- License
Arn This property is required. string - The ARN of the received license you want data for.
- License
Arn This property is required. string - The ARN of the received license you want data for.
- license
Arn This property is required. String - The ARN of the received license you want data for.
- license
Arn This property is required. string - The ARN of the received license you want data for.
- license_
arn This property is required. str - The ARN of the received license you want data for.
- license
Arn This property is required. 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 This property is required. List<GetReceived License Consumption Configuration Borrow Configuration> - Details about a borrow configuration. Detailed below
- Provisional
Configurations This property is required. List<GetReceived License Consumption Configuration Provisional Configuration> - Details about a provisional configuration. Detailed below
- Renew
Type This property is required. string
- Borrow
Configurations This property is required. []GetReceived License Consumption Configuration Borrow Configuration - Details about a borrow configuration. Detailed below
- Provisional
Configurations This property is required. []GetReceived License Consumption Configuration Provisional Configuration - Details about a provisional configuration. Detailed below
- Renew
Type This property is required. string
- borrow
Configurations This property is required. List<GetReceived License Consumption Configuration Borrow Configuration> - Details about a borrow configuration. Detailed below
- provisional
Configurations This property is required. List<GetReceived License Consumption Configuration Provisional Configuration> - Details about a provisional configuration. Detailed below
- renew
Type This property is required. String
- borrow
Configurations This property is required. GetReceived License Consumption Configuration Borrow Configuration[] - Details about a borrow configuration. Detailed below
- provisional
Configurations This property is required. GetReceived License Consumption Configuration Provisional Configuration[] - Details about a provisional configuration. Detailed below
- renew
Type This property is required. string
- borrow_
configurations This property is required. Sequence[GetReceived License Consumption Configuration Borrow Configuration] - Details about a borrow configuration. Detailed below
- provisional_
configurations This property is required. Sequence[GetReceived License Consumption Configuration Provisional Configuration] - Details about a provisional configuration. Detailed below
- renew_
type This property is required. str
- borrow
Configurations This property is required. List<Property Map> - Details about a borrow configuration. Detailed below
- provisional
Configurations This property is required. List<Property Map> - Details about a provisional configuration. Detailed below
- renew
Type This property is required. String
GetReceivedLicenseConsumptionConfigurationBorrowConfiguration
- Allow
Early Check In This property is required. bool - Indicates whether early check-ins are allowed.
- Max
Time To Live In Minutes This property is required. int - Maximum time for the provisional configuration, in minutes.
- Allow
Early Check In This property is required. bool - Indicates whether early check-ins are allowed.
- Max
Time To Live In Minutes This property is required. int - Maximum time for the provisional configuration, in minutes.
- allow
Early Check In This property is required. Boolean - Indicates whether early check-ins are allowed.
- max
Time To Live In Minutes This property is required. Integer - Maximum time for the provisional configuration, in minutes.
- allow
Early Check In This property is required. boolean - Indicates whether early check-ins are allowed.
- max
Time To Live In Minutes This property is required. number - Maximum time for the provisional configuration, in minutes.
- allow_
early_ check_ in This property is required. bool - Indicates whether early check-ins are allowed.
- max_
time_ to_ live_ in_ minutes This property is required. int - Maximum time for the provisional configuration, in minutes.
- allow
Early Check In This property is required. Boolean - Indicates whether early check-ins are allowed.
- max
Time To Live In Minutes This property is required. Number - Maximum time for the provisional configuration, in minutes.
GetReceivedLicenseConsumptionConfigurationProvisionalConfiguration
- Max
Time To Live In Minutes This property is required. int - Maximum time for the provisional configuration, in minutes.
- Max
Time To Live In Minutes This property is required. int - Maximum time for the provisional configuration, in minutes.
- max
Time To Live In Minutes This property is required. Integer - Maximum time for the provisional configuration, in minutes.
- max
Time To Live In Minutes This property is required. number - Maximum time for the provisional configuration, in minutes.
- max_
time_ to_ live_ in_ minutes This property is required. int - Maximum time for the provisional configuration, in minutes.
- max
Time To Live In Minutes This property is required. Number - Maximum time for the provisional configuration, in minutes.
GetReceivedLicenseEntitlement
- Allow
Check In This property is required. bool - Indicates whether check-ins are allowed.
- Max
Count This property is required. int - Maximum entitlement count. Use if the unit is not None.
- Name
This property is required. string - The key name.
- Overage
This property is required. bool - Indicates whether overages are allowed.
- Unit
This property is required. string - Entitlement unit.
- Value
This property is required. string - The value.
- Allow
Check In This property is required. bool - Indicates whether check-ins are allowed.
- Max
Count This property is required. int - Maximum entitlement count. Use if the unit is not None.
- Name
This property is required. string - The key name.
- Overage
This property is required. bool - Indicates whether overages are allowed.
- Unit
This property is required. string - Entitlement unit.
- Value
This property is required. string - The value.
- allow
Check In This property is required. Boolean - Indicates whether check-ins are allowed.
- max
Count This property is required. Integer - Maximum entitlement count. Use if the unit is not None.
- name
This property is required. String - The key name.
- overage
This property is required. Boolean - Indicates whether overages are allowed.
- unit
This property is required. String - Entitlement unit.
- value
This property is required. String - The value.
- allow
Check In This property is required. boolean - Indicates whether check-ins are allowed.
- max
Count This property is required. number - Maximum entitlement count. Use if the unit is not None.
- name
This property is required. string - The key name.
- overage
This property is required. boolean - Indicates whether overages are allowed.
- unit
This property is required. string - Entitlement unit.
- value
This property is required. string - The value.
- allow_
check_ in This property is required. bool - Indicates whether check-ins are allowed.
- max_
count This property is required. int - Maximum entitlement count. Use if the unit is not None.
- name
This property is required. str - The key name.
- overage
This property is required. bool - Indicates whether overages are allowed.
- unit
This property is required. str - Entitlement unit.
- value
This property is required. str - The value.
- allow
Check In This property is required. Boolean - Indicates whether check-ins are allowed.
- max
Count This property is required. Number - Maximum entitlement count. Use if the unit is not None.
- name
This property is required. String - The key name.
- overage
This property is required. Boolean - Indicates whether overages are allowed.
- unit
This property is required. String - Entitlement unit.
- value
This property is required. String - The value.
GetReceivedLicenseIssuer
- Key
Fingerprint This property is required. string - Issuer key fingerprint.
- Name
This property is required. string - The key name.
- Sign
Key This property is required. 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 This property is required. string - Issuer key fingerprint.
- Name
This property is required. string - The key name.
- Sign
Key This property is required. 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 This property is required. String - Issuer key fingerprint.
- name
This property is required. String - The key name.
- sign
Key This property is required. 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 This property is required. string - Issuer key fingerprint.
- name
This property is required. string - The key name.
- sign
Key This property is required. 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 This property is required. str - Issuer key fingerprint.
- name
This property is required. str - The key name.
- sign_
key This property is required. 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 This property is required. String - Issuer key fingerprint.
- name
This property is required. String - The key name.
- sign
Key This property is required. 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 This property is required. List<string> - A list of allowed operations.
- Received
Status This property is required. string - Received status.
- Received
Status Reason This property is required. string - Received status reason.
- Allowed
Operations This property is required. []string - A list of allowed operations.
- Received
Status This property is required. string - Received status.
- Received
Status Reason This property is required. string - Received status reason.
- allowed
Operations This property is required. List<String> - A list of allowed operations.
- received
Status This property is required. String - Received status.
- received
Status Reason This property is required. String - Received status reason.
- allowed
Operations This property is required. string[] - A list of allowed operations.
- received
Status This property is required. string - Received status.
- received
Status Reason This property is required. string - Received status reason.
- allowed_
operations This property is required. Sequence[str] - A list of allowed operations.
- received_
status This property is required. str - Received status.
- received_
status_ reason This property is required. str - Received status reason.
- allowed
Operations This property is required. List<String> - A list of allowed operations.
- received
Status This property is required. String - Received status.
- received
Status Reason This property is required. String - Received status reason.
GetReceivedLicenseValidity
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.