Azure Native

v1.79.2 published on Thursday, Sep 29, 2022 by Pulumi

AddressByName

Address Resource. API Version: 2021-12-01.

Example Usage

CreateAddress

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var addressByName = new AzureNative.EdgeOrder.AddressByName("addressByName", new()
    {
        AddressName = "TestAddressName2",
        ContactDetails = new AzureNative.EdgeOrder.Inputs.ContactDetailsArgs
        {
            ContactName = "XXXX XXXX",
            EmailList = new[]
            {
                "xxxx@xxxx.xxx",
            },
            Phone = "0000000000",
            PhoneExtension = "",
        },
        Location = "eastus",
        ResourceGroupName = "YourResourceGroupName",
        ShippingAddress = new AzureNative.EdgeOrder.Inputs.ShippingAddressArgs
        {
            AddressType = "None",
            City = "San Francisco",
            CompanyName = "Microsoft",
            Country = "US",
            PostalCode = "94107",
            StateOrProvince = "CA",
            StreetAddress1 = "16 TOWNSEND ST",
            StreetAddress2 = "UNIT 1",
        },
    });

});
package main

import (
	edgeorder "github.com/pulumi/pulumi-azure-native/sdk/go/azure/edgeorder"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := edgeorder.NewAddressByName(ctx, "addressByName", &edgeorder.AddressByNameArgs{
			AddressName: pulumi.String("TestAddressName2"),
			ContactDetails: &edgeorder.ContactDetailsArgs{
				ContactName: pulumi.String("XXXX XXXX"),
				EmailList: pulumi.StringArray{
					pulumi.String("xxxx@xxxx.xxx"),
				},
				Phone:          pulumi.String("0000000000"),
				PhoneExtension: pulumi.String(""),
			},
			Location:          pulumi.String("eastus"),
			ResourceGroupName: pulumi.String("YourResourceGroupName"),
			ShippingAddress: &edgeorder.ShippingAddressArgs{
				AddressType:     pulumi.String("None"),
				City:            pulumi.String("San Francisco"),
				CompanyName:     pulumi.String("Microsoft"),
				Country:         pulumi.String("US"),
				PostalCode:      pulumi.String("94107"),
				StateOrProvince: pulumi.String("CA"),
				StreetAddress1:  pulumi.String("16 TOWNSEND ST"),
				StreetAddress2:  pulumi.String("UNIT 1"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.edgeorder.AddressByName;
import com.pulumi.azurenative.edgeorder.AddressByNameArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var addressByName = new AddressByName("addressByName", AddressByNameArgs.builder()        
            .addressName("TestAddressName2")
            .contactDetails(Map.ofEntries(
                Map.entry("contactName", "XXXX XXXX"),
                Map.entry("emailList", "xxxx@xxxx.xxx"),
                Map.entry("phone", "0000000000"),
                Map.entry("phoneExtension", "")
            ))
            .location("eastus")
            .resourceGroupName("YourResourceGroupName")
            .shippingAddress(Map.ofEntries(
                Map.entry("addressType", "None"),
                Map.entry("city", "San Francisco"),
                Map.entry("companyName", "Microsoft"),
                Map.entry("country", "US"),
                Map.entry("postalCode", "94107"),
                Map.entry("stateOrProvince", "CA"),
                Map.entry("streetAddress1", "16 TOWNSEND ST"),
                Map.entry("streetAddress2", "UNIT 1")
            ))
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

address_by_name = azure_native.edgeorder.AddressByName("addressByName",
    address_name="TestAddressName2",
    contact_details=azure_native.edgeorder.ContactDetailsArgs(
        contact_name="XXXX XXXX",
        email_list=["xxxx@xxxx.xxx"],
        phone="0000000000",
        phone_extension="",
    ),
    location="eastus",
    resource_group_name="YourResourceGroupName",
    shipping_address=azure_native.edgeorder.ShippingAddressArgs(
        address_type="None",
        city="San Francisco",
        company_name="Microsoft",
        country="US",
        postal_code="94107",
        state_or_province="CA",
        street_address1="16 TOWNSEND ST",
        street_address2="UNIT 1",
    ))
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const addressByName = new azure_native.edgeorder.AddressByName("addressByName", {
    addressName: "TestAddressName2",
    contactDetails: {
        contactName: "XXXX XXXX",
        emailList: ["xxxx@xxxx.xxx"],
        phone: "0000000000",
        phoneExtension: "",
    },
    location: "eastus",
    resourceGroupName: "YourResourceGroupName",
    shippingAddress: {
        addressType: "None",
        city: "San Francisco",
        companyName: "Microsoft",
        country: "US",
        postalCode: "94107",
        stateOrProvince: "CA",
        streetAddress1: "16 TOWNSEND ST",
        streetAddress2: "UNIT 1",
    },
});
resources:
  addressByName:
    type: azure-native:edgeorder:AddressByName
    properties:
      addressName: TestAddressName2
      contactDetails:
        contactName: XXXX XXXX
        emailList:
          - xxxx@xxxx.xxx
        phone: 0000000000
        phoneExtension:
      location: eastus
      resourceGroupName: YourResourceGroupName
      shippingAddress:
        addressType: None
        city: San Francisco
        companyName: Microsoft
        country: US
        postalCode: 94107
        stateOrProvince: CA
        streetAddress1: 16 TOWNSEND ST
        streetAddress2: UNIT 1

Create a AddressByName Resource

new AddressByName(name: string, args: AddressByNameArgs, opts?: CustomResourceOptions);
@overload
def AddressByName(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  address_name: Optional[str] = None,
                  contact_details: Optional[ContactDetailsArgs] = None,
                  location: Optional[str] = None,
                  resource_group_name: Optional[str] = None,
                  shipping_address: Optional[ShippingAddressArgs] = None,
                  tags: Optional[Mapping[str, str]] = None)
@overload
def AddressByName(resource_name: str,
                  args: AddressByNameArgs,
                  opts: Optional[ResourceOptions] = None)
func NewAddressByName(ctx *Context, name string, args AddressByNameArgs, opts ...ResourceOption) (*AddressByName, error)
public AddressByName(string name, AddressByNameArgs args, CustomResourceOptions? opts = null)
public AddressByName(String name, AddressByNameArgs args)
public AddressByName(String name, AddressByNameArgs args, CustomResourceOptions options)
type: azure-native:edgeorder:AddressByName
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AddressByNameArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args AddressByNameArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AddressByNameArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AddressByNameArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AddressByNameArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AddressByName Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The AddressByName resource accepts the following input properties:

ContactDetails Pulumi.AzureNative.EdgeOrder.Inputs.ContactDetailsArgs

Contact details for the address

ResourceGroupName string

The name of the resource group. The name is case insensitive.

AddressName string

The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only

Location string

The geo-location where the resource lives

ShippingAddress Pulumi.AzureNative.EdgeOrder.Inputs.ShippingAddressArgs

Shipping details for the address

Tags Dictionary<string, string>

Resource tags.

ContactDetails ContactDetailsArgs

Contact details for the address

ResourceGroupName string

The name of the resource group. The name is case insensitive.

AddressName string

The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only

Location string

The geo-location where the resource lives

ShippingAddress ShippingAddressArgs

Shipping details for the address

Tags map[string]string

Resource tags.

contactDetails ContactDetailsArgs

Contact details for the address

resourceGroupName String

The name of the resource group. The name is case insensitive.

addressName String

The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only

location String

The geo-location where the resource lives

shippingAddress ShippingAddressArgs

Shipping details for the address

tags Map<String,String>

Resource tags.

contactDetails ContactDetailsArgs

Contact details for the address

resourceGroupName string

The name of the resource group. The name is case insensitive.

addressName string

The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only

location string

The geo-location where the resource lives

shippingAddress ShippingAddressArgs

Shipping details for the address

tags {[key: string]: string}

Resource tags.

contact_details ContactDetailsArgs

Contact details for the address

resource_group_name str

The name of the resource group. The name is case insensitive.

address_name str

The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only

location str

The geo-location where the resource lives

shipping_address ShippingAddressArgs

Shipping details for the address

tags Mapping[str, str]

Resource tags.

contactDetails Property Map

Contact details for the address

resourceGroupName String

The name of the resource group. The name is case insensitive.

addressName String

The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only

location String

The geo-location where the resource lives

shippingAddress Property Map

Shipping details for the address

tags Map<String>

Resource tags.

Outputs

All input properties are implicitly available as output properties. Additionally, the AddressByName resource produces the following output properties:

AddressValidationStatus string

Status of address validation

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

SystemData Pulumi.AzureNative.EdgeOrder.Outputs.SystemDataResponse

Represents resource creation and update time

Type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

AddressValidationStatus string

Status of address validation

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

SystemData SystemDataResponse

Represents resource creation and update time

Type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

addressValidationStatus String

Status of address validation

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

systemData SystemDataResponse

Represents resource creation and update time

type String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

addressValidationStatus string

Status of address validation

id string

The provider-assigned unique ID for this managed resource.

name string

The name of the resource

systemData SystemDataResponse

Represents resource creation and update time

type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

address_validation_status str

Status of address validation

id str

The provider-assigned unique ID for this managed resource.

name str

The name of the resource

system_data SystemDataResponse

Represents resource creation and update time

type str

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

addressValidationStatus String

Status of address validation

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

systemData Property Map

Represents resource creation and update time

type String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

AddressType

None
None

Address type not known.

Residential
Residential

Residential Address.

Commercial
Commercial

Commercial Address.

AddressTypeNone
None

Address type not known.

AddressTypeResidential
Residential

Residential Address.

AddressTypeCommercial
Commercial

Commercial Address.

None
None

Address type not known.

Residential
Residential

Residential Address.

Commercial
Commercial

Commercial Address.

None
None

Address type not known.

Residential
Residential

Residential Address.

Commercial
Commercial

Commercial Address.

NONE
None

Address type not known.

RESIDENTIAL
Residential

Residential Address.

COMMERCIAL
Commercial

Commercial Address.

"None"
None

Address type not known.

"Residential"
Residential

Residential Address.

"Commercial"
Commercial

Commercial Address.

ContactDetails

ContactName string

Contact name of the person.

EmailList List<string>

List of Email-ids to be notified about job progress.

Phone string

Phone number of the contact person.

Mobile string

Mobile number of the contact person.

PhoneExtension string

Phone extension number of the contact person.

ContactName string

Contact name of the person.

EmailList []string

List of Email-ids to be notified about job progress.

Phone string

Phone number of the contact person.

Mobile string

Mobile number of the contact person.

PhoneExtension string

Phone extension number of the contact person.

contactName String

Contact name of the person.

emailList List<String>

List of Email-ids to be notified about job progress.

phone String

Phone number of the contact person.

mobile String

Mobile number of the contact person.

phoneExtension String

Phone extension number of the contact person.

contactName string

Contact name of the person.

emailList string[]

List of Email-ids to be notified about job progress.

phone string

Phone number of the contact person.

mobile string

Mobile number of the contact person.

phoneExtension string

Phone extension number of the contact person.

contact_name str

Contact name of the person.

email_list Sequence[str]

List of Email-ids to be notified about job progress.

phone str

Phone number of the contact person.

mobile str

Mobile number of the contact person.

phone_extension str

Phone extension number of the contact person.

contactName String

Contact name of the person.

emailList List<String>

List of Email-ids to be notified about job progress.

phone String

Phone number of the contact person.

mobile String

Mobile number of the contact person.

phoneExtension String

Phone extension number of the contact person.

ContactDetailsResponse

ContactName string

Contact name of the person.

EmailList List<string>

List of Email-ids to be notified about job progress.

Phone string

Phone number of the contact person.

Mobile string

Mobile number of the contact person.

PhoneExtension string

Phone extension number of the contact person.

ContactName string

Contact name of the person.

EmailList []string

List of Email-ids to be notified about job progress.

Phone string

Phone number of the contact person.

Mobile string

Mobile number of the contact person.

PhoneExtension string

Phone extension number of the contact person.

contactName String

Contact name of the person.

emailList List<String>

List of Email-ids to be notified about job progress.

phone String

Phone number of the contact person.

mobile String

Mobile number of the contact person.

phoneExtension String

Phone extension number of the contact person.

contactName string

Contact name of the person.

emailList string[]

List of Email-ids to be notified about job progress.

phone string

Phone number of the contact person.

mobile string

Mobile number of the contact person.

phoneExtension string

Phone extension number of the contact person.

contact_name str

Contact name of the person.

email_list Sequence[str]

List of Email-ids to be notified about job progress.

phone str

Phone number of the contact person.

mobile str

Mobile number of the contact person.

phone_extension str

Phone extension number of the contact person.

contactName String

Contact name of the person.

emailList List<String>

List of Email-ids to be notified about job progress.

phone String

Phone number of the contact person.

mobile String

Mobile number of the contact person.

phoneExtension String

Phone extension number of the contact person.

ShippingAddress

Country string

Name of the Country.

StreetAddress1 string

Street Address line 1.

AddressType string | Pulumi.AzureNative.EdgeOrder.AddressType

Type of address.

City string

Name of the City.

CompanyName string

Name of the company.

PostalCode string

Postal code.

StateOrProvince string

Name of the State or Province.

StreetAddress2 string

Street Address line 2.

StreetAddress3 string

Street Address line 3.

ZipExtendedCode string

Extended Zip Code.

Country string

Name of the Country.

StreetAddress1 string

Street Address line 1.

AddressType string | AddressType

Type of address.

City string

Name of the City.

CompanyName string

Name of the company.

PostalCode string

Postal code.

StateOrProvince string

Name of the State or Province.

StreetAddress2 string

Street Address line 2.

StreetAddress3 string

Street Address line 3.

ZipExtendedCode string

Extended Zip Code.

country String

Name of the Country.

streetAddress1 String

Street Address line 1.

addressType String | AddressType

Type of address.

city String

Name of the City.

companyName String

Name of the company.

postalCode String

Postal code.

stateOrProvince String

Name of the State or Province.

streetAddress2 String

Street Address line 2.

streetAddress3 String

Street Address line 3.

zipExtendedCode String

Extended Zip Code.

country string

Name of the Country.

streetAddress1 string

Street Address line 1.

addressType string | AddressType

Type of address.

city string

Name of the City.

companyName string

Name of the company.

postalCode string

Postal code.

stateOrProvince string

Name of the State or Province.

streetAddress2 string

Street Address line 2.

streetAddress3 string

Street Address line 3.

zipExtendedCode string

Extended Zip Code.

country str

Name of the Country.

street_address1 str

Street Address line 1.

address_type str | AddressType

Type of address.

city str

Name of the City.

company_name str

Name of the company.

postal_code str

Postal code.

state_or_province str

Name of the State or Province.

street_address2 str

Street Address line 2.

street_address3 str

Street Address line 3.

zip_extended_code str

Extended Zip Code.

country String

Name of the Country.

streetAddress1 String

Street Address line 1.

addressType String | "None" | "Residential" | "Commercial"

Type of address.

city String

Name of the City.

companyName String

Name of the company.

postalCode String

Postal code.

stateOrProvince String

Name of the State or Province.

streetAddress2 String

Street Address line 2.

streetAddress3 String

Street Address line 3.

zipExtendedCode String

Extended Zip Code.

ShippingAddressResponse

Country string

Name of the Country.

StreetAddress1 string

Street Address line 1.

AddressType string

Type of address.

City string

Name of the City.

CompanyName string

Name of the company.

PostalCode string

Postal code.

StateOrProvince string

Name of the State or Province.

StreetAddress2 string

Street Address line 2.

StreetAddress3 string

Street Address line 3.

ZipExtendedCode string

Extended Zip Code.

Country string

Name of the Country.

StreetAddress1 string

Street Address line 1.

AddressType string

Type of address.

City string

Name of the City.

CompanyName string

Name of the company.

PostalCode string

Postal code.

StateOrProvince string

Name of the State or Province.

StreetAddress2 string

Street Address line 2.

StreetAddress3 string

Street Address line 3.

ZipExtendedCode string

Extended Zip Code.

country String

Name of the Country.

streetAddress1 String

Street Address line 1.

addressType String

Type of address.

city String

Name of the City.

companyName String

Name of the company.

postalCode String

Postal code.

stateOrProvince String

Name of the State or Province.

streetAddress2 String

Street Address line 2.

streetAddress3 String

Street Address line 3.

zipExtendedCode String

Extended Zip Code.

country string

Name of the Country.

streetAddress1 string

Street Address line 1.

addressType string

Type of address.

city string

Name of the City.

companyName string

Name of the company.

postalCode string

Postal code.

stateOrProvince string

Name of the State or Province.

streetAddress2 string

Street Address line 2.

streetAddress3 string

Street Address line 3.

zipExtendedCode string

Extended Zip Code.

country str

Name of the Country.

street_address1 str

Street Address line 1.

address_type str

Type of address.

city str

Name of the City.

company_name str

Name of the company.

postal_code str

Postal code.

state_or_province str

Name of the State or Province.

street_address2 str

Street Address line 2.

street_address3 str

Street Address line 3.

zip_extended_code str

Extended Zip Code.

country String

Name of the Country.

streetAddress1 String

Street Address line 1.

addressType String

Type of address.

city String

Name of the City.

companyName String

Name of the company.

postalCode String

Postal code.

stateOrProvince String

Name of the State or Province.

streetAddress2 String

Street Address line 2.

streetAddress3 String

Street Address line 3.

zipExtendedCode String

Extended Zip Code.

SystemDataResponse

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

createdAt string

The timestamp of resource creation (UTC).

createdBy string

The identity that created the resource.

createdByType string

The type of identity that created the resource.

lastModifiedAt string

The timestamp of resource last modification (UTC)

lastModifiedBy string

The identity that last modified the resource.

lastModifiedByType string

The type of identity that last modified the resource.

created_at str

The timestamp of resource creation (UTC).

created_by str

The identity that created the resource.

created_by_type str

The type of identity that created the resource.

last_modified_at str

The timestamp of resource last modification (UTC)

last_modified_by str

The identity that last modified the resource.

last_modified_by_type str

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:edgeorder:AddressByName TestAddressName2 /subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/addresses/TestAddressName2 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0