Package com.pulumi.aws.ec2.inputs
Class GetInstancePlainArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.ec2.inputs.GetInstancePlainArgs.Builder
-
- Enclosing class:
- GetInstancePlainArgs
public static final class GetInstancePlainArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(GetInstancePlainArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetInstancePlainArgsbuild()GetInstancePlainArgs.Builderfilters(GetInstanceFilter... filters)GetInstancePlainArgs.Builderfilters(java.util.List<GetInstanceFilter> filters)GetInstancePlainArgs.BuildergetPasswordData(java.lang.Boolean getPasswordData)GetInstancePlainArgs.BuildergetUserData(java.lang.Boolean getUserData)GetInstancePlainArgs.BuilderinstanceId(java.lang.String instanceId)GetInstancePlainArgs.BuilderinstanceTags(java.util.Map<java.lang.String,java.lang.String> instanceTags)GetInstancePlainArgs.Builderregion(java.lang.String region)GetInstancePlainArgs.Buildertags(java.util.Map<java.lang.String,java.lang.String> tags)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(GetInstancePlainArgs defaults)
-
-
Method Detail
-
filters
public GetInstancePlainArgs.Builder filters(@Nullable java.util.List<GetInstanceFilter> filters)
- Parameters:
filters- One or more filters to apply to the search. If multiple `filter` blocks are provided, they all must be true. For a full reference of filter names, see [describe-instances in the AWS CLI reference](http://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html). See `filter` Block below.- Returns:
- builder
-
filters
public GetInstancePlainArgs.Builder filters(GetInstanceFilter... filters)
- Parameters:
filters- One or more filters to apply to the search. If multiple `filter` blocks are provided, they all must be true. For a full reference of filter names, see [describe-instances in the AWS CLI reference](http://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html). See `filter` Block below.- Returns:
- builder
-
getPasswordData
public GetInstancePlainArgs.Builder getPasswordData(@Nullable java.lang.Boolean getPasswordData)
- Parameters:
getPasswordData- If true, wait for password data to become available and retrieve it. Useful for getting the administrator password for instances running Microsoft Windows. The password data is exported to the `passwordData` attribute. See [GetPasswordData](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetPasswordData.html) for more information.- Returns:
- builder
-
getUserData
public GetInstancePlainArgs.Builder getUserData(@Nullable java.lang.Boolean getUserData)
- Parameters:
getUserData- Retrieve Base64 encoded User Data contents into the `userDataBase64` attribute. A SHA-1 hash of the User Data contents will always be present in the `userData` attribute. Defaults to `false`. > **NOTE:** At least one of `filter`, `instanceTags`, or `instanceId` must be specified. > **NOTE:** If anything other than a single match is returned by the search, this call will fail. Ensure that your search is specific enough to return a single Instance ID only.- Returns:
- builder
-
instanceId
public GetInstancePlainArgs.Builder instanceId(@Nullable java.lang.String instanceId)
- Parameters:
instanceId- Specify the exact Instance ID with which to populate the data source.- Returns:
- builder
-
instanceTags
public GetInstancePlainArgs.Builder instanceTags(@Nullable java.util.Map<java.lang.String,java.lang.String> instanceTags)
- Parameters:
instanceTags- Map of tags, each pair of which must exactly match a pair on the desired Instance.- Returns:
- builder
-
region
public GetInstancePlainArgs.Builder region(@Nullable java.lang.String region)
- Parameters:
region- 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.- Returns:
- builder
-
tags
public GetInstancePlainArgs.Builder tags(@Nullable java.util.Map<java.lang.String,java.lang.String> tags)
- Parameters:
tags- Map of tags assigned to the Instance.- Returns:
- builder
-
build
public GetInstancePlainArgs build()
-
-