Association
Provides a License Manager association.
Note: License configurations can also be associated with launch templates by specifying the
license_specificationsblock for anaws.ec2.LaunchTemplate.
Example Usage
Coming soon!
Coming soon!
Coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const exampleAmi = pulumi.output(aws.getAmi({
filters: [{
name: "name",
values: ["amzn-ami-vpc-nat*"],
}],
mostRecent: true,
owners: ["amazon"],
}, { async: true }));
const exampleInstance = new aws.ec2.Instance("example", {
ami: exampleAmi.id,
instanceType: "t2.micro",
});
const exampleLicenseConfiguration = new aws.licensemanager.LicenseConfiguration("example", {
licenseCountingType: "Instance",
});
const exampleAssociation = new aws.licensemanager.Association("example", {
licenseConfigurationArn: exampleLicenseConfiguration.arn,
resourceArn: exampleInstance.arn,
});Create a Association Resource
new Association(name: string, args: AssociationArgs, opts?: CustomResourceOptions);def Association(resource_name, opts=None, license_configuration_arn=None, resource_arn=None, __props__=None);func NewAssociation(ctx *Context, name string, args AssociationArgs, opts ...ResourceOption) (*Association, error)public Association(string name, AssociationArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Association Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Association resource accepts the following input properties:
- License
Configuration stringArn ARN of the license configuration.
- Resource
Arn string ARN of the resource associated with the license configuration.
- License
Configuration stringArn ARN of the license configuration.
- Resource
Arn string ARN of the resource associated with the license configuration.
- license
Configuration stringArn ARN of the license configuration.
- resource
Arn string ARN of the resource associated with the license configuration.
- license_
configuration_ strarn ARN of the license configuration.
- resource_
arn str ARN of the resource associated with the license configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the Association resource produces the following output properties:
Look up an Existing Association Resource
Get an existing Association resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AssociationState, opts?: CustomResourceOptions): Associationstatic get(resource_name, id, opts=None, license_configuration_arn=None, resource_arn=None, __props__=None);func GetAssociation(ctx *Context, name string, id IDInput, state *AssociationState, opts ...ResourceOption) (*Association, error)public static Association Get(string name, Input<string> id, AssociationState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- License
Configuration stringArn ARN of the license configuration.
- Resource
Arn string ARN of the resource associated with the license configuration.
- License
Configuration stringArn ARN of the license configuration.
- Resource
Arn string ARN of the resource associated with the license configuration.
- license
Configuration stringArn ARN of the license configuration.
- resource
Arn string ARN of the resource associated with the license configuration.
- license_
configuration_ strarn ARN of the license configuration.
- resource_
arn str ARN of the resource associated with the license configuration.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.