All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.services.guardduty.CfnIPSet Maven / Gradle / Ivy

package software.amazon.awscdk.services.guardduty;

/**
 * A CloudFormation AWS::GuardDuty::IPSet.
 * 

* The AWS::GuardDuty::IPSet resource specifies a new IPSet . An IPSet is a list of trusted IP addresses from which secure communication is allowed with AWS infrastructure and applications. *

* Example: *

*

 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.guardduty.*;
 * CfnIPSet cfnIPSet = CfnIPSet.Builder.create(this, "MyCfnIPSet")
 *         .activate(false)
 *         .detectorId("detectorId")
 *         .format("format")
 *         .location("location")
 *         // the properties below are optional
 *         .name("name")
 *         .tags(List.of(CfnTag.builder()
 *                 .key("key")
 *                 .value("value")
 *                 .build()))
 *         .build();
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.84.0 (build 5404dcf)", date = "2023-06-19T16:29:57.169Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.guardduty.$Module.class, fqn = "@aws-cdk/aws-guardduty.CfnIPSet") public class CfnIPSet extends software.amazon.awscdk.core.CfnResource implements software.amazon.awscdk.core.IInspectable { protected CfnIPSet(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected CfnIPSet(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } static { CFN_RESOURCE_TYPE_NAME = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.guardduty.CfnIPSet.class, "CFN_RESOURCE_TYPE_NAME", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * Create a new AWS::GuardDuty::IPSet. *

* @param scope

  • scope in which this resource is defined.
This parameter is required. * @param id
  • scoped id of the resource.
This parameter is required. * @param props
  • resource properties.
This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public CfnIPSet(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.guardduty.CfnIPSetProps props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") }); } /** * Examines the CloudFormation resource and discloses attributes. *

* @param inspector

  • tree inspector to collect and process attributes.
This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public void inspect(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.TreeInspector inspector) { software.amazon.jsii.Kernel.call(this, "inspect", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(inspector, "inspector is required") }); } /** * @param props This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override protected @org.jetbrains.annotations.NotNull java.util.Map renderProperties(final @org.jetbrains.annotations.NotNull java.util.Map props) { return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.call(this, "renderProperties", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)), new Object[] { java.util.Objects.requireNonNull(props, "props is required") })); } /** * The CloudFormation resource type name for this resource class. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public final static java.lang.String CFN_RESOURCE_TYPE_NAME; /** */ @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) protected @org.jetbrains.annotations.NotNull java.util.Map getCfnProperties() { return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.get(this, "cfnProperties", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } /** * The tags to be added to a new IP set resource. *

* Each tag consists of a key and an optional value, both of which you define. *

* For more information, see Tag . */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.TagManager getTags() { return software.amazon.jsii.Kernel.get(this, "tags", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.core.TagManager.class)); } /** * Indicates whether or not GuardDuty uses the IPSet . */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.Object getActivate() { return software.amazon.jsii.Kernel.get(this, "activate", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** * Indicates whether or not GuardDuty uses the IPSet . */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setActivate(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) { software.amazon.jsii.Kernel.set(this, "activate", java.util.Objects.requireNonNull(value, "activate is required")); } /** * Indicates whether or not GuardDuty uses the IPSet . */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setActivate(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "activate", java.util.Objects.requireNonNull(value, "activate is required")); } /** * The unique ID of the detector of the GuardDuty account that you want to create an IPSet for. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getDetectorId() { return software.amazon.jsii.Kernel.get(this, "detectorId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The unique ID of the detector of the GuardDuty account that you want to create an IPSet for. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setDetectorId(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "detectorId", java.util.Objects.requireNonNull(value, "detectorId is required")); } /** * The format of the file that contains the IPSet. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getFormat() { return software.amazon.jsii.Kernel.get(this, "format", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The format of the file that contains the IPSet. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setFormat(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "format", java.util.Objects.requireNonNull(value, "format is required")); } /** * The URI of the file that contains the IPSet. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getLocation() { return software.amazon.jsii.Kernel.get(this, "location", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The URI of the file that contains the IPSet. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setLocation(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "location", java.util.Objects.requireNonNull(value, "location is required")); } /** * The user-friendly name to identify the IPSet. *

* Allowed characters are alphanumeric, whitespace, dash (-), and underscores (_). */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getName() { return software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The user-friendly name to identify the IPSet. *

* Allowed characters are alphanumeric, whitespace, dash (-), and underscores (_). */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setName(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "name", value); } /** * A fluent builder for {@link software.amazon.awscdk.services.guardduty.CfnIPSet}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param scope

  • scope in which this resource is defined.
This parameter is required. * @param id
  • scoped id of the resource.
This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static Builder create(final software.amazon.awscdk.core.Construct scope, final java.lang.String id) { return new Builder(scope, id); } private final software.amazon.awscdk.core.Construct scope; private final java.lang.String id; private final software.amazon.awscdk.services.guardduty.CfnIPSetProps.Builder props; private Builder(final software.amazon.awscdk.core.Construct scope, final java.lang.String id) { this.scope = scope; this.id = id; this.props = new software.amazon.awscdk.services.guardduty.CfnIPSetProps.Builder(); } /** * Indicates whether or not GuardDuty uses the IPSet . *

* @return {@code this} * @param activate Indicates whether or not GuardDuty uses the IPSet . This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder activate(final java.lang.Boolean activate) { this.props.activate(activate); return this; } /** * Indicates whether or not GuardDuty uses the IPSet . *

* @return {@code this} * @param activate Indicates whether or not GuardDuty uses the IPSet . This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder activate(final software.amazon.awscdk.core.IResolvable activate) { this.props.activate(activate); return this; } /** * The unique ID of the detector of the GuardDuty account that you want to create an IPSet for. *

* @return {@code this} * @param detectorId The unique ID of the detector of the GuardDuty account that you want to create an IPSet for. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder detectorId(final java.lang.String detectorId) { this.props.detectorId(detectorId); return this; } /** * The format of the file that contains the IPSet. *

* @return {@code this} * @param format The format of the file that contains the IPSet. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder format(final java.lang.String format) { this.props.format(format); return this; } /** * The URI of the file that contains the IPSet. *

* @return {@code this} * @param location The URI of the file that contains the IPSet. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder location(final java.lang.String location) { this.props.location(location); return this; } /** * The user-friendly name to identify the IPSet. *

* Allowed characters are alphanumeric, whitespace, dash (-), and underscores (_). *

* @return {@code this} * @param name The user-friendly name to identify the IPSet. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder name(final java.lang.String name) { this.props.name(name); return this; } /** * The tags to be added to a new IP set resource. *

* Each tag consists of a key and an optional value, both of which you define. *

* For more information, see Tag . *

* @return {@code this} * @param tags The tags to be added to a new IP set resource. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder tags(final java.util.List tags) { this.props.tags(tags); return this; } /** * @return a newly built instance of {@link software.amazon.awscdk.services.guardduty.CfnIPSet}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public software.amazon.awscdk.services.guardduty.CfnIPSet build() { return new software.amazon.awscdk.services.guardduty.CfnIPSet( this.scope, this.id, this.props.build() ); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy