Show / Hide Table of Contents

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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
AmiLaunchPermission
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
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 Source

AmiLaunchPermission(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 Source

AccountId

An AWS Account ID to add launch permissions.

Declaration
public Output<string> AccountId { get; }
Property Value
Type Description
Output<System.String>
View Source

ImageId

A region-unique name for the AMI.

Declaration
public Output<string> ImageId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.