@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-14T16:25:22.675Z") public class CfnGateway extends CfnResource implements IInspectable
Creates a gateway, which is a virtual or edge device that delivers industrial data streams from local servers to AWS IoT SiteWise . For more information, see Ingesting data using a gateway in the AWS IoT SiteWise User Guide .
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.iotsitewise.*; CfnGateway cfnGateway = CfnGateway.Builder.create(this, "MyCfnGateway") .gatewayName("gatewayName") .gatewayPlatform(GatewayPlatformProperty.builder() .greengrass(GreengrassProperty.builder() .groupArn("groupArn") .build()) .greengrassV2(GreengrassV2Property.builder() .coreDeviceThingName("coreDeviceThingName") .build()) .build()) // the properties below are optional .gatewayCapabilitySummaries(List.of(GatewayCapabilitySummaryProperty.builder() .capabilityNamespace("capabilityNamespace") // the properties below are optional .capabilityConfiguration("capabilityConfiguration") .build())) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnGateway.Builder
A fluent builder for
CfnGateway . |
static interface |
CfnGateway.GatewayCapabilitySummaryProperty
Contains a summary of a gateway capability configuration.
|
static interface |
CfnGateway.GatewayPlatformProperty
Contains a gateway's platform information.
|
static interface |
CfnGateway.GreengrassProperty
Contains details for a gateway that runs on AWS IoT Greengrass .
|
static interface |
CfnGateway.GreengrassV2Property
Contains details for a gateway that runs on AWS IoT Greengrass V2.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnGateway(Construct scope,
java.lang.String id,
CfnGatewayProps props)
Create a new `AWS::IoTSiteWise::Gateway`.
|
protected |
CfnGateway(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnGateway(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrGatewayId()
The ID for the gateway.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.Object |
getGatewayCapabilitySummaries()
A list of gateway capability summaries that each contain a namespace and status.
|
java.lang.String |
getGatewayName()
A unique, friendly name for the gateway.
|
java.lang.Object |
getGatewayPlatform()
The gateway's platform.
|
TagManager |
getTags()
A list of key-value pairs that contain metadata for the gateway.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setGatewayCapabilitySummaries(IResolvable value)
A list of gateway capability summaries that each contain a namespace and status.
|
void |
setGatewayCapabilitySummaries(java.util.List<java.lang.Object> value)
A list of gateway capability summaries that each contain a namespace and status.
|
void |
setGatewayName(java.lang.String value)
A unique, friendly name for the gateway.
|
void |
setGatewayPlatform(CfnGateway.GatewayPlatformProperty value)
The gateway's platform.
|
void |
setGatewayPlatform(IResolvable value)
The gateway's platform.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnGateway(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnGateway(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnGateway(Construct scope, java.lang.String id, CfnGatewayProps 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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrGatewayId()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide .
public java.lang.String getGatewayName()
The maximum length is 256 characters with the pattern [^\ u0000-\ u001F\ u007F]+
.
public void setGatewayName(java.lang.String value)
The maximum length is 256 characters with the pattern [^\ u0000-\ u001F\ u007F]+
.
public java.lang.Object getGatewayPlatform()
You can only specify one platform in a gateway.
public void setGatewayPlatform(IResolvable value)
You can only specify one platform in a gateway.
public void setGatewayPlatform(CfnGateway.GatewayPlatformProperty value)
You can only specify one platform in a gateway.
public java.lang.Object getGatewayCapabilitySummaries()
Each gateway capability defines data sources for the gateway. To retrieve a capability configuration's definition, use DescribeGatewayCapabilityConfiguration .
public void setGatewayCapabilitySummaries(IResolvable value)
Each gateway capability defines data sources for the gateway. To retrieve a capability configuration's definition, use DescribeGatewayCapabilityConfiguration .
public void setGatewayCapabilitySummaries(java.util.List<java.lang.Object> value)
Each gateway capability defines data sources for the gateway. To retrieve a capability configuration's definition, use DescribeGatewayCapabilityConfiguration .