@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
81 lines (80 loc) • 3.78 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a regional public access block for AMIs. This prevents AMIs from being made publicly accessible.
* If you already have public AMIs, they will remain publicly available.
*
* > **NOTE:** Deleting this resource does not change the block public access value, the resource in simply removed from state instead.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* // Prevent making AMIs publicly accessible in the region and account for which the provider is configured
* const test = new aws.ec2.ImageBlockPublicAccess("test", {state: "block-new-sharing"});
* ```
*
* ## Import
*
* You cannot import this resource.
*/
export declare class ImageBlockPublicAccess extends pulumi.CustomResource {
/**
* Get an existing ImageBlockPublicAccess resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ImageBlockPublicAccessState, opts?: pulumi.CustomResourceOptions): ImageBlockPublicAccess;
/**
* Returns true if the given object is an instance of ImageBlockPublicAccess. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is ImageBlockPublicAccess;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
readonly region: pulumi.Output<string>;
/**
* The state of block public access for AMIs at the account level in the configured AWS Region. Valid values: `unblocked` and `block-new-sharing`.
*/
readonly state: pulumi.Output<string>;
/**
* Create a ImageBlockPublicAccess resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: ImageBlockPublicAccessArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ImageBlockPublicAccess resources.
*/
export interface ImageBlockPublicAccessState {
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
/**
* The state of block public access for AMIs at the account level in the configured AWS Region. Valid values: `unblocked` and `block-new-sharing`.
*/
state?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a ImageBlockPublicAccess resource.
*/
export interface ImageBlockPublicAccessArgs {
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
/**
* The state of block public access for AMIs at the account level in the configured AWS Region. Valid values: `unblocked` and `block-new-sharing`.
*/
state: pulumi.Input<string>;
}