Package com.pulumi.aws.route53
Class CidrLocation
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.route53.CidrLocation
-
public class CidrLocation extends com.pulumi.resources.CustomResourceProvides a Route53 CIDR location resource. ## Example Usage
## Import Using `pulumi import`, import CIDR locations using their the CIDR collection ID and location name. For example: ```sh $ pulumi import aws:route53/cidrLocation:CidrLocation example 9ac32814-3e67-0932-6048-8d779cc6f511,office ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.route53.CidrCollection; import com.pulumi.aws.route53.CidrCollectionArgs; import com.pulumi.aws.route53.CidrLocation; import com.pulumi.aws.route53.CidrLocationArgs; import java.util.ArrayList; import java.util.Arrays; 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 CidrCollection("example", CidrCollectionArgs.builder() .name("collection-1") .build()); var exampleCidrLocation = new CidrLocation("exampleCidrLocation", CidrLocationArgs.builder() .cidrCollectionId(example.id()) .name("office") .cidrBlocks( "200.5.3.0/24", "200.6.3.0/24") .build()); } }
-
-
Constructor Summary
Constructors Constructor Description CidrLocation(java.lang.String name)CidrLocation(java.lang.String name, CidrLocationArgs args)CidrLocation(java.lang.String name, CidrLocationArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.List<java.lang.String>>cidrBlocks()com.pulumi.core.Output<java.lang.String>cidrCollectionId()static CidrLocationget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, CidrLocationState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>name()
-
-
-
Constructor Detail
-
CidrLocation
public CidrLocation(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
CidrLocation
public CidrLocation(java.lang.String name, CidrLocationArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
CidrLocation
public CidrLocation(java.lang.String name, CidrLocationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
cidrBlocks
public com.pulumi.core.Output<java.util.List<java.lang.String>> cidrBlocks()
- Returns:
- CIDR blocks for the location.
-
cidrCollectionId
public com.pulumi.core.Output<java.lang.String> cidrCollectionId()
- Returns:
- The ID of the CIDR collection to update.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- Name for the CIDR location.
-
get
public static CidrLocation get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable CidrLocationState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-