java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IEnvironmentAware, ISiteRef, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)", date="2026-07-22T17:37:30.686Z") @Stability(Stable) public class CfnSite extends CfnResource implements IInspectable, ISiteRef, ITaggableV2
Definition of AWS::Outposts::Site Resource Type.

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.outposts.*;
 CfnSite cfnSite = CfnSite.Builder.create(this, "MyCfnSite")
         .name("name")
         // the properties below are optional
         .description("description")
         .notes("notes")
         .operatingAddress(AddressProperty.builder()
                 .addressLine1("addressLine1")
                 .city("city")
                 .contactName("contactName")
                 .contactPhoneNumber("contactPhoneNumber")
                 .countryCode("countryCode")
                 .postalCode("postalCode")
                 .stateOrRegion("stateOrRegion")
                 // the properties below are optional
                 .addressLine2("addressLine2")
                 .addressLine3("addressLine3")
                 .districtOrCounty("districtOrCounty")
                 .municipality("municipality")
                 .build())
         .rackPhysicalProperties(RackPhysicalPropertiesProperty.builder()
                 .fiberOpticCableType("fiberOpticCableType")
                 .maximumSupportedWeightLbs("maximumSupportedWeightLbs")
                 .opticalStandard("opticalStandard")
                 .powerConnector("powerConnector")
                 .powerDrawKva("powerDrawKva")
                 .powerFeedDrop("powerFeedDrop")
                 .powerPhase("powerPhase")
                 .uplinkCount("uplinkCount")
                 .uplinkGbps("uplinkGbps")
                 .build())
         .shippingAddress(AddressProperty.builder()
                 .addressLine1("addressLine1")
                 .city("city")
                 .contactName("contactName")
                 .contactPhoneNumber("contactPhoneNumber")
                 .countryCode("countryCode")
                 .postalCode("postalCode")
                 .stateOrRegion("stateOrRegion")
                 // the properties below are optional
                 .addressLine2("addressLine2")
                 .addressLine3("addressLine3")
                 .districtOrCounty("districtOrCounty")
                 .municipality("municipality")
                 .build())
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnSite

      protected CfnSite(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnSite

      protected CfnSite(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnSite

      @Stability(Stable) public CfnSite(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSiteProps props)
      Create a new AWS::Outposts::Site.

      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • arnForSite

      @Stability(Stable) @NotNull public static String arnForSite(@NotNull ISiteRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnSite

      @Stability(Stable) @NotNull public static Boolean isCfnSite(@NotNull Object x)
      Checks whether the given object is a CfnSite.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrSiteArn

      @Stability(Stable) @NotNull public String getAttrSiteArn()
    • getAttrSiteId

      @Stability(Stable) @NotNull public String getAttrSiteId()
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getSiteRef

      @Stability(Stable) @NotNull public SiteReference getSiteRef()
      A reference to a Site resource.
      Specified by:
      getSiteRef in interface ISiteRef
    • getName

      @Stability(Stable) @NotNull public String getName()
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
    • getNotes

      @Stability(Stable) @Nullable public String getNotes()
    • setNotes

      @Stability(Stable) public void setNotes(@Nullable String value)
    • getOperatingAddress

      @Stability(Stable) @Nullable public Object getOperatingAddress()
      Returns union: either IResolvable or CfnSite.AddressProperty
    • setOperatingAddress

      @Stability(Stable) public void setOperatingAddress(@Nullable IResolvable value)
    • setOperatingAddress

      @Stability(Stable) public void setOperatingAddress(@Nullable CfnSite.AddressProperty value)
    • getRackPhysicalProperties

      @Stability(Stable) @Nullable public Object getRackPhysicalProperties()
    • setRackPhysicalProperties

      @Stability(Stable) public void setRackPhysicalProperties(@Nullable IResolvable value)
    • setRackPhysicalProperties

      @Stability(Stable) public void setRackPhysicalProperties(@Nullable CfnSite.RackPhysicalPropertiesProperty value)
    • getShippingAddress

      @Stability(Stable) @Nullable public Object getShippingAddress()
      Returns union: either IResolvable or CfnSite.AddressProperty
    • setShippingAddress

      @Stability(Stable) public void setShippingAddress(@Nullable IResolvable value)
    • setShippingAddress

      @Stability(Stable) public void setShippingAddress(@Nullable CfnSite.AddressProperty value)
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)