OrderItemByName

class OrderItemByName : KotlinCustomResource

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

Properties

Link copied to clipboard

Represents shipping and return address for order item

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard
val orderId: Output<String>

Id of the order to which order item belongs to

Link copied to clipboard

Represents order item details.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val startTime: Output<String>

Start time of order item

Link copied to clipboard

Represents resource creation and update time

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

Resource tags.

Link copied to clipboard
val type: Output<String>

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

Link copied to clipboard
val urn: Output<String>