@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
95 lines (94 loc) • 3.74 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Provides the ability to register a target with an AWS VPC Lattice Target Group.
*
* ## Example Usage
*
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = new aws.vpclattice.TargetGroupAttachment("example", {
* targetGroupIdentifier: exampleAwsVpclatticeTargetGroup.id,
* target: {
* id: exampleAwsLb.arn,
* port: 80,
* },
* });
* ```
*/
export declare class TargetGroupAttachment extends pulumi.CustomResource {
/**
* Get an existing TargetGroupAttachment 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?: TargetGroupAttachmentState, opts?: pulumi.CustomResourceOptions): TargetGroupAttachment;
/**
* Returns true if the given object is an instance of TargetGroupAttachment. 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 TargetGroupAttachment;
/**
* 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 target.
*/
readonly target: pulumi.Output<outputs.vpclattice.TargetGroupAttachmentTarget>;
/**
* The ID or Amazon Resource Name (ARN) of the target group.
*/
readonly targetGroupIdentifier: pulumi.Output<string>;
/**
* Create a TargetGroupAttachment 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: TargetGroupAttachmentArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering TargetGroupAttachment resources.
*/
export interface TargetGroupAttachmentState {
/**
* 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 target.
*/
target?: pulumi.Input<inputs.vpclattice.TargetGroupAttachmentTarget>;
/**
* The ID or Amazon Resource Name (ARN) of the target group.
*/
targetGroupIdentifier?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a TargetGroupAttachment resource.
*/
export interface TargetGroupAttachmentArgs {
/**
* 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 target.
*/
target: pulumi.Input<inputs.vpclattice.TargetGroupAttachmentTarget>;
/**
* The ID or Amazon Resource Name (ARN) of the target group.
*/
targetGroupIdentifier: pulumi.Input<string>;
}