Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

ServiceDictionaryItemsv1

Import

This is an example of the import command being applied to the resource named fastly_service_dictionary_items_v1.items The resource ID is a combined value of the service_id and dictionary_id separated by a forward slash.

 $ pulumi import fastly:index/serviceDictionaryItemsv1:ServiceDictionaryItemsv1 items xxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxx

If Terraform is already managing remote dictionary items against a resource being imported then the user will be asked to remove it from the existing Terraform state.

The following is an example of the Terraform state command to remove the resource named fastly_service_dictionary_items_v1.items from the Terraform state file. $ terraform state rm fastly_service_dictionary_items_v1.items

Create a ServiceDictionaryItemsv1 Resource

new ServiceDictionaryItemsv1(name: string, args: ServiceDictionaryItemsv1Args, opts?: CustomResourceOptions);
def ServiceDictionaryItemsv1(resource_name: str, opts: Optional[ResourceOptions] = None, dictionary_id: Optional[str] = None, items: Optional[Mapping[str, Any]] = None, service_id: Optional[str] = None)
func NewServiceDictionaryItemsv1(ctx *Context, name string, args ServiceDictionaryItemsv1Args, opts ...ResourceOption) (*ServiceDictionaryItemsv1, error)
public ServiceDictionaryItemsv1(string name, ServiceDictionaryItemsv1Args args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ServiceDictionaryItemsv1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ServiceDictionaryItemsv1Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ServiceDictionaryItemsv1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ServiceDictionaryItemsv1 Resource Properties

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

Inputs

The ServiceDictionaryItemsv1 resource accepts the following input properties:

DictionaryId string

The ID of the dictionary that the items belong to

ServiceId string

The ID of the service that the dictionary belongs to

Items Dictionary<string, object>

A map representing an entry in the dictionary, (key/value)

DictionaryId string

The ID of the dictionary that the items belong to

ServiceId string

The ID of the service that the dictionary belongs to

Items map[string]interface{}

A map representing an entry in the dictionary, (key/value)

dictionaryId string

The ID of the dictionary that the items belong to

serviceId string

The ID of the service that the dictionary belongs to

items {[key: string]: any}

A map representing an entry in the dictionary, (key/value)

dictionary_id str

The ID of the dictionary that the items belong to

service_id str

The ID of the service that the dictionary belongs to

items Mapping[str, Any]

A map representing an entry in the dictionary, (key/value)

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing ServiceDictionaryItemsv1 Resource

Get an existing ServiceDictionaryItemsv1 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ServiceDictionaryItemsv1State, opts?: CustomResourceOptions): ServiceDictionaryItemsv1
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, dictionary_id: Optional[str] = None, items: Optional[Mapping[str, Any]] = None, service_id: Optional[str] = None) -> ServiceDictionaryItemsv1
func GetServiceDictionaryItemsv1(ctx *Context, name string, id IDInput, state *ServiceDictionaryItemsv1State, opts ...ResourceOption) (*ServiceDictionaryItemsv1, error)
public static ServiceDictionaryItemsv1 Get(string name, Input<string> id, ServiceDictionaryItemsv1State? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

DictionaryId string

The ID of the dictionary that the items belong to

Items Dictionary<string, object>

A map representing an entry in the dictionary, (key/value)

ServiceId string

The ID of the service that the dictionary belongs to

DictionaryId string

The ID of the dictionary that the items belong to

Items map[string]interface{}

A map representing an entry in the dictionary, (key/value)

ServiceId string

The ID of the service that the dictionary belongs to

dictionaryId string

The ID of the dictionary that the items belong to

items {[key: string]: any}

A map representing an entry in the dictionary, (key/value)

serviceId string

The ID of the service that the dictionary belongs to

dictionary_id str

The ID of the dictionary that the items belong to

items Mapping[str, Any]

A map representing an entry in the dictionary, (key/value)

service_id str

The ID of the service that the dictionary belongs to

Package Details

Repository
https://github.com/pulumi/pulumi-fastly
License
Apache-2.0
Notes
This Pulumi package is based on the fastly Terraform Provider.