Skip to content
v2.278.0

AddressProperty Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_outposts as outposts } from 'aws-cdk-lib';
const addressProperty: outposts.CfnSite.AddressProperty = {
  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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_outposts as outposts

address_property = outposts.CfnSite.AddressProperty(
    address_line1="addressLine1",
    city="city",
    contact_name="contactName",
    contact_phone_number="contactPhoneNumber",
    country_code="countryCode",
    postal_code="postalCode",
    state_or_region="stateOrRegion",

    # the properties below are optional
    address_line2="addressLine2",
    address_line3="addressLine3",
    district_or_county="districtOrCounty",
    municipality="municipality"
)
java
// 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.*;

AddressProperty addressProperty = 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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Outposts;

var addressProperty = new AddressProperty {
    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"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

addressProperty := &AddressProperty{
	AddressLine1: jsii.String("addressLine1"),
	City: jsii.String("city"),
	ContactName: jsii.String("contactName"),
	ContactPhoneNumber: jsii.String("contactPhoneNumber"),
	CountryCode: jsii.String("countryCode"),
	PostalCode: jsii.String("postalCode"),
	StateOrRegion: jsii.String("stateOrRegion"),

	// the properties below are optional
	AddressLine2: jsii.String("addressLine2"),
	AddressLine3: jsii.String("addressLine3"),
	DistrictOrCounty: jsii.String("districtOrCounty"),
	Municipality: jsii.String("municipality"),
}

Properties ​

addressLine1stringaddress_line1straddressLine1StringAddressLine1stringAddressLine1*string required #
addressLine2optionalstringaddress_line2optionalstraddressLine2optionalStringAddressLine2optionalstringAddressLine2optional*string #
addressLine3optionalstringaddress_line3optionalstraddressLine3optionalStringAddressLine3optionalstringAddressLine3optional*string #
citystringcitystrcityStringCitystringCity*string required #
contactNamestringcontact_namestrcontactNameStringContactNamestringContactName*string required #
contactPhoneNumberstringcontact_phone_numberstrcontactPhoneNumberStringContactPhoneNumberstringContactPhoneNumber*string required #
countryCodestringcountry_codestrcountryCodeStringCountryCodestringCountryCode*string required #
districtOrCountyoptionalstringdistrict_or_countyoptionalstrdistrictOrCountyoptionalStringDistrictOrCountyoptionalstringDistrictOrCountyoptional*string #
municipalityoptionalstringmunicipalityoptionalstrmunicipalityoptionalStringMunicipalityoptionalstringMunicipalityoptional*string #
postalCodestringpostal_codestrpostalCodeStringPostalCodestringPostalCode*string required #
stateOrRegionstringstate_or_regionstrstateOrRegionStringStateOrRegionstringStateOrRegion*string required #