Component

class Component : KotlinCustomResource

Manages an Image Builder Component.

Example Usage

URI Document

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.imagebuilder.Component;
import com.pulumi.aws.imagebuilder.ComponentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Component("example", ComponentArgs.builder()
.platform("Linux")
.uri(String.format("s3://%s/%s", aws_s3_object.example().bucket(),aws_s3_object.example().key()))
.version("1.0.0")
.build());
}
}

Import

aws_imagebuilder_components resources can be imported by using the Amazon Resource Name (ARN), e.g.,

$ pulumi import aws:imagebuilder/component:Component example arn:aws:imagebuilder:us-east-1:123456789012:component/example/1.0.0/1

Certain resource arguments, such as uri, cannot be read via the API and imported into the provider. The provider will display a difference for these arguments the first run after import if declared in the the provider configuration for an imported resource.

Properties

Link copied to clipboard
val arn: Output<String>

(Required) Amazon Resource Name (ARN) of the component.

Link copied to clipboard

Change description of the component.

Link copied to clipboard
val data: Output<String>

Inline YAML string with data of the component. Exactly one of data and uri can be specified. the provider will only perform drift detection of its value when present in a configuration.

Link copied to clipboard
val dateCreated: Output<String>

Date the component was created.

Link copied to clipboard
val description: Output<String>?

Description of the component.

Link copied to clipboard
val encrypted: Output<Boolean>

Encryption status of the component.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val kmsKeyId: Output<String>?

Amazon Resource Name (ARN) of the Key Management Service (KMS) Key used to encrypt the component.

Link copied to clipboard
val name: Output<String>

Name of the component.

Link copied to clipboard
val owner: Output<String>

Owner of the component.

Link copied to clipboard
val platform: Output<String>

Platform of the component.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val skipDestroy: Output<Boolean>?

Whether to retain the old version when the resource is destroyed or replacement is necessary. Defaults to false.

Link copied to clipboard

Set of Operating Systems (OS) supported by the component.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Key-value map of resource tags for the component. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val type: Output<String>

Type of the component.

Link copied to clipboard
val uri: Output<String>?

S3 URI with data of the component. Exactly one of data and uri can be specified.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val version: Output<String>

Version of the component. The following attributes are optional: