Package com.pulumi.aws.waf
Class IpSet
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.waf.IpSet
-
public class IpSet extends com.pulumi.resources.CustomResourceProvides a WAF IPSet Resource ## Example Usage
## Import Using `pulumi import`, import WAF IPSets using their ID. For example: ```sh $ pulumi import aws:waf/ipSet:IpSet example a1b2c3d4-d5f6-7777-8888-9999aaaabbbbcccc ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.waf.IpSet; import com.pulumi.aws.waf.IpSetArgs; import com.pulumi.aws.waf.inputs.IpSetIpSetDescriptorArgs; 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 ipset = new IpSet("ipset", IpSetArgs.builder() .ipSetDescriptors( IpSetIpSetDescriptorArgs.builder() .type("IPV4") .value("192.0.7.0/24") .build(), IpSetIpSetDescriptorArgs.builder() .type("IPV4") .value("10.16.16.0/16") .build()) .name("tfIPSet") .build()); } }
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>arn()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.util.Optional<java.util.List<IpSetIpSetDescriptor>>>ipSetDescriptors()com.pulumi.core.Output<java.lang.String>name()
-
-
-
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, @Nullable 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, @Nullable 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
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- The ARN of the WAF IPSet.
-
ipSetDescriptors
public com.pulumi.core.Output<java.util.Optional<java.util.List<IpSetIpSetDescriptor>>> ipSetDescriptors()
- Returns:
- One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR format) from which web requests originate.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The name or description of the IPSet.
-
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.
-
-