@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-04-22T09:30:49.599Z") @Stability(value=Stable) public class CfnSite extends CfnResource implements IInspectable
Specifies a site in a global network.
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.networkmanager.*; CfnSite cfnSite = CfnSite.Builder.create(this, "MyCfnSite") .globalNetworkId("globalNetworkId") // the properties below are optional .description("description") .location(LocationProperty.builder() .address("address") .latitude("latitude") .longitude("longitude") .build()) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnSite.Builder
A fluent builder for
CfnSite . |
static interface |
CfnSite.LocationProperty
Describes a location.
|
software.amazon.jsii.JsiiObject.InitializationMode
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
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 |
---|---|
|
CfnSite(software.constructs.Construct scope,
String id,
CfnSiteProps props)
Create a new `AWS::NetworkManager::Site`.
|
protected |
CfnSite(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnSite(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
String |
getAttrSiteArn()
The ARN of the site.
|
String |
getAttrSiteId()
The ID of the site.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
A description of your site.
|
String |
getGlobalNetworkId()
The ID of the global network.
|
Object |
getLocation()
The site location.
|
TagManager |
getTags()
The tags for the site.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDescription(String value)
A description of your site.
|
void |
setGlobalNetworkId(String value)
The ID of the global network.
|
void |
setLocation(CfnSite.LocationProperty value)
The site location.
|
void |
setLocation(IResolvable value)
The site location.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnSite(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnSite(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public CfnSite(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSiteProps 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 IInspectable
inspector
- - 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 CfnResource
props
- This parameter is required.@Stability(value=Stable) @NotNull public String getAttrSiteArn()
For example, arn:aws:networkmanager::123456789012:site/global-network-01231231231231231/site-444555aaabbb11223
.
@Stability(value=Stable) @NotNull public String getAttrSiteId()
For example, site-444555aaabbb11223
.
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties
in class CfnResource
@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getGlobalNetworkId()
@Stability(value=Stable) public void setGlobalNetworkId(@NotNull String value)
@Stability(value=Stable) @Nullable public String getDescription()
Constraints: Maximum length of 256 characters.
@Stability(value=Stable) public void setDescription(@Nullable String value)
Constraints: Maximum length of 256 characters.
@Stability(value=Stable) @Nullable public Object getLocation()
This information is used for visualization in the Network Manager console. If you specify the address, the latitude and longitude are automatically calculated.
Address
: The physical address of the site.Latitude
: The latitude of the site.Longitude
: The longitude of the site.@Stability(value=Stable) public void setLocation(@Nullable CfnSite.LocationProperty value)
This information is used for visualization in the Network Manager console. If you specify the address, the latitude and longitude are automatically calculated.
Address
: The physical address of the site.Latitude
: The latitude of the site.Longitude
: The longitude of the site.@Stability(value=Stable) public void setLocation(@Nullable IResolvable value)
This information is used for visualization in the Network Manager console. If you specify the address, the latitude and longitude are automatically calculated.
Address
: The physical address of the site.Latitude
: The latitude of the site.Longitude
: The longitude of the site.Copyright © 2022. All rights reserved.