Class AmiLaunchPermission
Adds launch permission to Amazon Machine Image (AMI) from another AWS account.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Ec2.AmiLaunchPermission("example", new Aws.Ec2.AmiLaunchPermissionArgs
{
AccountId = "123456789012",
ImageId = "ami-12345678",
});
}
}
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public class AmiLaunchPermission : CustomResource
Constructors
View SourceAmiLaunchPermission(String, AmiLaunchPermissionArgs, CustomResourceOptions)
Create a AmiLaunchPermission resource with the given unique name, arguments, and options.
Declaration
public AmiLaunchPermission(string name, AmiLaunchPermissionArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AmiLaunchPermissionArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAccountId
An AWS Account ID to add launch permissions.
Declaration
public Output<string> AccountId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ImageId
A region-unique name for the AMI.
Declaration
public Output<string> ImageId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, AmiLaunchPermissionState, CustomResourceOptions)
Get an existing AmiLaunchPermission resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AmiLaunchPermission Get(string name, Input<string> id, AmiLaunchPermissionState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AmiLaunchPermissionState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AmiLaunchPermission |