1. Packages
  2. Fastly Provider
  3. API Docs
  4. ServiceDictionaryItems
Fastly v9.0.0 published on Tuesday, Apr 8, 2025 by Pulumi

fastly.ServiceDictionaryItems

Explore with Pulumi AI

Import

This is an example of the import command being applied to the resource named fastly_service_dictionary_items.items

The resource ID is a combined value of the service_id and dictionary_id separated by a forward slash.

$ pulumi import fastly:index/serviceDictionaryItems:ServiceDictionaryItems items xxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxx
Copy

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.items from the Terraform state file.

$ terraform state rm fastly_service_dictionary_items.items

Create ServiceDictionaryItems Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ServiceDictionaryItems(name: string, args: ServiceDictionaryItemsArgs, opts?: CustomResourceOptions);
@overload
def ServiceDictionaryItems(resource_name: str,
                           args: ServiceDictionaryItemsArgs,
                           opts: Optional[ResourceOptions] = None)

@overload
def ServiceDictionaryItems(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           dictionary_id: Optional[str] = None,
                           service_id: Optional[str] = None,
                           items: Optional[Mapping[str, str]] = None,
                           manage_items: Optional[bool] = None)
func NewServiceDictionaryItems(ctx *Context, name string, args ServiceDictionaryItemsArgs, opts ...ResourceOption) (*ServiceDictionaryItems, error)
public ServiceDictionaryItems(string name, ServiceDictionaryItemsArgs args, CustomResourceOptions? opts = null)
public ServiceDictionaryItems(String name, ServiceDictionaryItemsArgs args)
public ServiceDictionaryItems(String name, ServiceDictionaryItemsArgs args, CustomResourceOptions options)
type: fastly:ServiceDictionaryItems
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

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

Constructor example

The following reference example uses placeholder values for all input properties.

var serviceDictionaryItemsResource = new Fastly.ServiceDictionaryItems("serviceDictionaryItemsResource", new()
{
    DictionaryId = "string",
    ServiceId = "string",
    Items = 
    {
        { "string", "string" },
    },
    ManageItems = false,
});
Copy
example, err := fastly.NewServiceDictionaryItems(ctx, "serviceDictionaryItemsResource", &fastly.ServiceDictionaryItemsArgs{
	DictionaryId: pulumi.String("string"),
	ServiceId:    pulumi.String("string"),
	Items: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	ManageItems: pulumi.Bool(false),
})
Copy
var serviceDictionaryItemsResource = new ServiceDictionaryItems("serviceDictionaryItemsResource", ServiceDictionaryItemsArgs.builder()
    .dictionaryId("string")
    .serviceId("string")
    .items(Map.of("string", "string"))
    .manageItems(false)
    .build());
Copy
service_dictionary_items_resource = fastly.ServiceDictionaryItems("serviceDictionaryItemsResource",
    dictionary_id="string",
    service_id="string",
    items={
        "string": "string",
    },
    manage_items=False)
Copy
const serviceDictionaryItemsResource = new fastly.ServiceDictionaryItems("serviceDictionaryItemsResource", {
    dictionaryId: "string",
    serviceId: "string",
    items: {
        string: "string",
    },
    manageItems: false,
});
Copy
type: fastly:ServiceDictionaryItems
properties:
    dictionaryId: string
    items:
        string: string
    manageItems: false
    serviceId: string
Copy

ServiceDictionaryItems Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ServiceDictionaryItems resource accepts the following input properties:

DictionaryId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the dictionary that the items belong to
ServiceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the service that the dictionary belongs to
Items Dictionary<string, string>
A map representing an entry in the dictionary, (key/value)
ManageItems bool
Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
DictionaryId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the dictionary that the items belong to
ServiceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the service that the dictionary belongs to
Items map[string]string
A map representing an entry in the dictionary, (key/value)
ManageItems bool
Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
dictionaryId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the dictionary that the items belong to
serviceId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the service that the dictionary belongs to
items Map<String,String>
A map representing an entry in the dictionary, (key/value)
manageItems Boolean
Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
dictionaryId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the dictionary that the items belong to
serviceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the service that the dictionary belongs to
items {[key: string]: string}
A map representing an entry in the dictionary, (key/value)
manageItems boolean
Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
dictionary_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the dictionary that the items belong to
service_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the service that the dictionary belongs to
items Mapping[str, str]
A map representing an entry in the dictionary, (key/value)
manage_items bool
Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
dictionaryId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the dictionary that the items belong to
serviceId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the service that the dictionary belongs to
items Map<String>
A map representing an entry in the dictionary, (key/value)
manageItems Boolean
Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally

Outputs

All input properties are implicitly available as output properties. Additionally, the ServiceDictionaryItems 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 string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing ServiceDictionaryItems Resource

Get an existing ServiceDictionaryItems 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?: ServiceDictionaryItemsState, opts?: CustomResourceOptions): ServiceDictionaryItems
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        dictionary_id: Optional[str] = None,
        items: Optional[Mapping[str, str]] = None,
        manage_items: Optional[bool] = None,
        service_id: Optional[str] = None) -> ServiceDictionaryItems
func GetServiceDictionaryItems(ctx *Context, name string, id IDInput, state *ServiceDictionaryItemsState, opts ...ResourceOption) (*ServiceDictionaryItems, error)
public static ServiceDictionaryItems Get(string name, Input<string> id, ServiceDictionaryItemsState? state, CustomResourceOptions? opts = null)
public static ServiceDictionaryItems get(String name, Output<String> id, ServiceDictionaryItemsState state, CustomResourceOptions options)
resources:  _:    type: fastly:ServiceDictionaryItems    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. string
The ID of the dictionary that the items belong to
Items Dictionary<string, string>
A map representing an entry in the dictionary, (key/value)
ManageItems bool
Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
ServiceId Changes to this property will trigger replacement. string
The ID of the service that the dictionary belongs to
DictionaryId Changes to this property will trigger replacement. string
The ID of the dictionary that the items belong to
Items map[string]string
A map representing an entry in the dictionary, (key/value)
ManageItems bool
Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
ServiceId Changes to this property will trigger replacement. string
The ID of the service that the dictionary belongs to
dictionaryId Changes to this property will trigger replacement. String
The ID of the dictionary that the items belong to
items Map<String,String>
A map representing an entry in the dictionary, (key/value)
manageItems Boolean
Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
serviceId Changes to this property will trigger replacement. String
The ID of the service that the dictionary belongs to
dictionaryId Changes to this property will trigger replacement. string
The ID of the dictionary that the items belong to
items {[key: string]: string}
A map representing an entry in the dictionary, (key/value)
manageItems boolean
Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
serviceId Changes to this property will trigger replacement. string
The ID of the service that the dictionary belongs to
dictionary_id Changes to this property will trigger replacement. str
The ID of the dictionary that the items belong to
items Mapping[str, str]
A map representing an entry in the dictionary, (key/value)
manage_items bool
Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
service_id Changes to this property will trigger replacement. str
The ID of the service that the dictionary belongs to
dictionaryId Changes to this property will trigger replacement. String
The ID of the dictionary that the items belong to
items Map<String>
A map representing an entry in the dictionary, (key/value)
manageItems Boolean
Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
serviceId Changes to this property will trigger replacement. String
The ID of the service that the dictionary belongs to

Package Details

Repository
Fastly pulumi/pulumi-fastly
License
Apache-2.0
Notes
This Pulumi package is based on the fastly Terraform Provider.