Package com.pulumi.aws.wafv2
Class IpSet
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.wafv2.IpSet
-
public class IpSet extends com.pulumi.resources.CustomResourceProvides a WAFv2 IP Set Resource ## Example Usage
## Import ### Identity Schema #### Required * `id` (String) Unique identifier for the IP set. * `name` (String) Name of the IP set. * `scope` (String) Whether this is for a global (`CLOUDFRONT`) or regional (`REGIONAL`) application. #### Optional * `accountId` (String) AWS Account where this resource is managed. * `region` (String) Region where this resource is managed. Using `pulumi import`, import WAFv2 IP Sets using `ID/name/scope`. For example: ```sh $ pulumi import aws:wafv2/ipSet:IpSet example a1b2c3d4-d5f6-7777-8888-9999aaaabbbbcccc/example/REGIONAL ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.wafv2.IpSet; import com.pulumi.aws.wafv2.IpSetArgs; 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 IpSet("example", IpSetArgs.builder() .name("example") .description("Example IP set") .scope("REGIONAL") .ipAddressVersion("IPV4") .addresses( "1.2.3.4/32", "5.6.7.8/32") .tags(Map.ofEntries( Map.entry("Tag1", "Value1"), Map.entry("Tag2", "Value2") )) .build()); } }
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>addresses()com.pulumi.core.Output<java.lang.String>arn()com.pulumi.core.Output<java.util.Optional<java.lang.String>>description()static IpSetget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, IpSetState 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>ipAddressVersion()com.pulumi.core.Output<java.lang.String>lockToken()com.pulumi.core.Output<java.lang.String>name()com.pulumi.core.Output<java.lang.String>namePrefix()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.String>scope()com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>tags()com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>tagsAll()
-
-
-
Constructor Detail
-
IpSet
public IpSet(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
IpSet
public IpSet(java.lang.String name, IpSetArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
IpSet
public IpSet(java.lang.String name, IpSetArgs 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
-
addresses
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> addresses()
- Returns:
- Contains an array of strings that specifies zero or more IP addresses or blocks of IP addresses. All addresses must be specified using Classless Inter-Domain Routing (CIDR) notation. WAF supports all IPv4 and IPv6 CIDR ranges except for `/0`.
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- ARN of the IP set.
-
description
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
- Returns:
- A friendly description of the IP set.
-
ipAddressVersion
public com.pulumi.core.Output<java.lang.String> ipAddressVersion()
- Returns:
- Specify IPV4 or IPV6. Valid values are `IPV4` or `IPV6`.
-
lockToken
public com.pulumi.core.Output<java.lang.String> lockToken()
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- A friendly name of the IP set. If omitted, the provider will assign a random, unique name. Conflicts with `namePrefix`.
-
namePrefix
public com.pulumi.core.Output<java.lang.String> namePrefix()
- Returns:
- Creates a unique name beginning with the specified prefix. Conflicts with `name`.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- 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.
-
scope
public com.pulumi.core.Output<java.lang.String> scope()
- Returns:
- Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are `CLOUDFRONT` or `REGIONAL`. To work with CloudFront, you must also specify the Region US East (N. Virginia).
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- An array of key:value pairs to associate with the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
get
public static IpSet get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable IpSetState 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.
-
-