@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:35.413Z") @Stability(value=Stable) public class CfnIPSet extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnIPSet.Builder
A fluent builder for
CfnIPSet. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnIPSet(Construct scope,
String id,
CfnIPSetProps props)
Create a new `AWS::GuardDuty::IPSet`.
|
protected |
CfnIPSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnIPSet(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getActivate()
Indicates whether or not uses the `IPSet` .
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDetectorId()
The unique ID of the detector of the GuardDuty account that you want to create an IPSet for.
|
String |
getFormat()
The format of the file that contains the IPSet.
|
String |
getLocation()
The URI of the file that contains the IPSet.
|
String |
getName()
The user-friendly name to identify the IPSet.
|
TagManager |
getTags()
The tags to be added to a new IP set resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setActivate(Boolean value)
Indicates whether or not uses the `IPSet` .
|
void |
setActivate(IResolvable value)
Indicates whether or not uses the `IPSet` .
|
void |
setDetectorId(String value)
The unique ID of the detector of the GuardDuty account that you want to create an IPSet for.
|
void |
setFormat(String value)
The format of the file that contains the IPSet.
|
void |
setLocation(String value)
The URI of the file that contains the IPSet.
|
void |
setName(String value)
The user-friendly name to identify the IPSet.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnIPSet(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnIPSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnIPSet(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnIPSetProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
Each tag consists of a key and an optional value, both of which you define.
For more information, see Tag .
@Stability(value=Stable) @NotNull public Object getActivate()
@Stability(value=Stable)
public void setActivate(@NotNull
Boolean value)
@Stability(value=Stable)
public void setActivate(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public String getDetectorId()
@Stability(value=Stable)
public void setDetectorId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getFormat()
@Stability(value=Stable)
public void setFormat(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getLocation()
@Stability(value=Stable)
public void setLocation(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getName()
Allowed characters are alphanumerics, spaces, hyphens (-), and underscores (_).
@Stability(value=Stable)
public void setName(@Nullable
String value)
Allowed characters are alphanumerics, spaces, hyphens (-), and underscores (_).
Copyright © 2022. All rights reserved.