OrderItemByNameArgs

data class OrderItemByNameArgs(val addressDetails: Output<AddressDetailsArgs>? = null, val location: Output<String>? = null, val orderId: Output<String>? = null, val orderItemDetails: Output<OrderItemDetailsArgs>? = null, val orderItemName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<OrderItemByNameArgs>

Represents order item contract API Version: 2021-12-01.

Example Usage

CreateOrderItem

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var orderItemByName = new AzureNative.EdgeOrder.OrderItemByName("orderItemByName", new()
{
AddressDetails = new AzureNative.EdgeOrder.Inputs.AddressDetailsArgs
{
ForwardAddress = new AzureNative.EdgeOrder.Inputs.AddressPropertiesArgs
{
ContactDetails = new AzureNative.EdgeOrder.Inputs.ContactDetailsArgs
{
ContactName = "XXXX XXXX",
EmailList = new[]
{
"xxxx@xxxx.xxx",
},
Phone = "0000000000",
PhoneExtension = "",
},
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",
},
},
},
Location = "eastus",
OrderId = "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/TestOrderName2",
OrderItemDetails = new AzureNative.EdgeOrder.Inputs.OrderItemDetailsArgs
{
OrderItemType = "Purchase",
Preferences = new AzureNative.EdgeOrder.Inputs.PreferencesArgs
{
TransportPreferences = new AzureNative.EdgeOrder.Inputs.TransportPreferencesArgs
{
PreferredShipmentType = "MicrosoftManaged",
},
},
ProductDetails = new AzureNative.EdgeOrder.Inputs.ProductDetailsArgs
{
HierarchyInformation = new AzureNative.EdgeOrder.Inputs.HierarchyInformationArgs
{
ConfigurationName = "edgep_base",
ProductFamilyName = "azurestackedge",
ProductLineName = "azurestackedge",
ProductName = "azurestackedgegpu",
},
},
},
OrderItemName = "TestOrderItemName2",
ResourceGroupName = "YourResourceGroupName",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.edgeorder.OrderItemByName;
import com.pulumi.azurenative.edgeorder.OrderItemByNameArgs;
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 orderItemByName = new OrderItemByName("orderItemByName", OrderItemByNameArgs.builder()
.addressDetails(Map.of("forwardAddress", Map.ofEntries(
Map.entry("contactDetails", Map.ofEntries(
Map.entry("contactName", "XXXX XXXX"),
Map.entry("emailList", "xxxx@xxxx.xxx"),
Map.entry("phone", "0000000000"),
Map.entry("phoneExtension", "")
)),
Map.entry("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")
))
)))
.location("eastus")
.orderId("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/TestOrderName2")
.orderItemDetails(Map.ofEntries(
Map.entry("orderItemType", "Purchase"),
Map.entry("preferences", Map.of("transportPreferences", Map.of("preferredShipmentType", "MicrosoftManaged"))),
Map.entry("productDetails", Map.of("hierarchyInformation", Map.ofEntries(
Map.entry("configurationName", "edgep_base"),
Map.entry("productFamilyName", "azurestackedge"),
Map.entry("productLineName", "azurestackedge"),
Map.entry("productName", "azurestackedgegpu")
)))
))
.orderItemName("TestOrderItemName2")
.resourceGroupName("YourResourceGroupName")
.build());
}
}

Import

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

$ pulumi import azure-native:edgeorder:OrderItemByName TestOrderItemName2 /subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/orderItems/TestOrderItemName2

Constructors

Link copied to clipboard
constructor(addressDetails: Output<AddressDetailsArgs>? = null, location: Output<String>? = null, orderId: Output<String>? = null, orderItemDetails: Output<OrderItemDetailsArgs>? = null, orderItemName: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val addressDetails: Output<AddressDetailsArgs>? = null

Represents shipping and return address for order item

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val orderId: Output<String>? = null

Id of the order to which order item belongs to

Link copied to clipboard

Represents order item details.

Link copied to clipboard
val orderItemName: Output<String>? = null

The name of the order item

Link copied to clipboard
val resourceGroupName: Output<String>? = null

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

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): OrderItemByNameArgs