Azure Native

Pulumi Official
Package maintained by Pulumi
v1.64.1 published on Wednesday, May 18, 2022 by Pulumi

ContentItem

Content type contract details. API Version: 2020-12-01.

Example Usage

ApiManagementCreateContentTypeContentItem

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var contentItem = new AzureNative.ApiManagement.ContentItem("contentItem", new AzureNative.ApiManagement.ContentItemArgs
        {
            ContentItemId = "4e3cf6a5-574a-ba08-1f23-2e7a38faa6d8",
            ContentTypeId = "page",
            ResourceGroupName = "rg1",
            ServiceName = "apimService1",
        });
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := apimanagement.NewContentItem(ctx, "contentItem", &apimanagement.ContentItemArgs{
			ContentItemId:     pulumi.String("4e3cf6a5-574a-ba08-1f23-2e7a38faa6d8"),
			ContentTypeId:     pulumi.String("page"),
			ResourceGroupName: pulumi.String("rg1"),
			ServiceName:       pulumi.String("apimService1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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

    public static void stack(Context ctx) {
        var contentItem = new ContentItem("contentItem", ContentItemArgs.builder()        
            .contentItemId("4e3cf6a5-574a-ba08-1f23-2e7a38faa6d8")
            .contentTypeId("page")
            .resourceGroupName("rg1")
            .serviceName("apimService1")
            .build());

        }
}
import pulumi
import pulumi_azure_native as azure_native

content_item = azure_native.apimanagement.ContentItem("contentItem",
    content_item_id="4e3cf6a5-574a-ba08-1f23-2e7a38faa6d8",
    content_type_id="page",
    resource_group_name="rg1",
    service_name="apimService1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const contentItem = new azure_native.apimanagement.ContentItem("contentItem", {
    contentItemId: "4e3cf6a5-574a-ba08-1f23-2e7a38faa6d8",
    contentTypeId: "page",
    resourceGroupName: "rg1",
    serviceName: "apimService1",
});
resources:
  contentItem:
    type: azure-native:apimanagement:ContentItem
    properties:
      contentItemId: 4e3cf6a5-574a-ba08-1f23-2e7a38faa6d8
      contentTypeId: page
      resourceGroupName: rg1
      serviceName: apimService1

Create a ContentItem Resource

new ContentItem(name: string, args: ContentItemArgs, opts?: CustomResourceOptions);
@overload
def ContentItem(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                content_item_id: Optional[str] = None,
                content_type_id: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                service_name: Optional[str] = None)
@overload
def ContentItem(resource_name: str,
                args: ContentItemArgs,
                opts: Optional[ResourceOptions] = None)
func NewContentItem(ctx *Context, name string, args ContentItemArgs, opts ...ResourceOption) (*ContentItem, error)
public ContentItem(string name, ContentItemArgs args, CustomResourceOptions? opts = null)
public ContentItem(String name, ContentItemArgs args)
public ContentItem(String name, ContentItemArgs args, CustomResourceOptions options)
type: azure-native:apimanagement:ContentItem
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ContentItemArgs
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 ContentItemArgs
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 ContentItemArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ContentItemArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ContentItemArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ContentItem 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 ContentItem resource accepts the following input properties:

ContentTypeId string

Content type identifier.

ResourceGroupName string

The name of the resource group.

ServiceName string

The name of the API Management service.

ContentItemId string

Content item identifier.

ContentTypeId string

Content type identifier.

ResourceGroupName string

The name of the resource group.

ServiceName string

The name of the API Management service.

ContentItemId string

Content item identifier.

contentTypeId String

Content type identifier.

resourceGroupName String

The name of the resource group.

serviceName String

The name of the API Management service.

contentItemId String

Content item identifier.

contentTypeId string

Content type identifier.

resourceGroupName string

The name of the resource group.

serviceName string

The name of the API Management service.

contentItemId string

Content item identifier.

content_type_id str

Content type identifier.

resource_group_name str

The name of the resource group.

service_name str

The name of the API Management service.

content_item_id str

Content item identifier.

contentTypeId String

Content type identifier.

resourceGroupName String

The name of the resource group.

serviceName String

The name of the API Management service.

contentItemId String

Content item identifier.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name.

Properties object

Properties of the content item.

Type string

Resource type for API Management resource.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name.

Properties interface{}

Properties of the content item.

Type string

Resource type for API Management resource.

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name.

properties Object

Properties of the content item.

type String

Resource type for API Management resource.

id string

The provider-assigned unique ID for this managed resource.

name string

Resource name.

properties any

Properties of the content item.

type string

Resource type for API Management resource.

id str

The provider-assigned unique ID for this managed resource.

name str

Resource name.

properties Any

Properties of the content item.

type str

Resource type for API Management resource.

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name.

properties Any

Properties of the content item.

type String

Resource type for API Management resource.

Import

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

$ pulumi import azure-native:apimanagement:ContentItem 4e3cf6a5-574a-ba08-1f23-2e7a38faa6d8 /contentTypes/page/contentItems/4e3cf6a5-574a-ba08-1f23-2e7a38faa6d8 

Package Details

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