Component Args
data class ComponentArgs(val changeDescription: Output<String>? = null, val data: Output<String>? = null, val description: Output<String>? = null, val kmsKeyId: Output<String>? = null, val name: Output<String>? = null, val platform: Output<String>? = null, val skipDestroy: Output<Boolean>? = null, val supportedOsVersions: Output<List<String>>? = null, val tags: Output<Map<String, String>>? = null, val uri: Output<String>? = null, val version: Output<String>? = null) : ConvertibleToJava<ComponentArgs>
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
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.
Constructors
Link copied to clipboard
constructor(changeDescription: Output<String>? = null, data: Output<String>? = null, description: Output<String>? = null, kmsKeyId: Output<String>? = null, name: Output<String>? = null, platform: Output<String>? = null, skipDestroy: Output<Boolean>? = null, supportedOsVersions: Output<List<String>>? = null, tags: Output<Map<String, String>>? = null, uri: Output<String>? = null, version: Output<String>? = null)
Properties
Link copied to clipboard
Change description of the component.
Link copied to clipboard
Description of the component.
Link copied to clipboard
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.