This page documents the language specification for the azure package. If you're looking for help working with the inputs, outputs, or functions of azure resources in a Pulumi program, please see the resource documentation for examples and API reference.
mediaservices¶
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-azure repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-azurerm repo.
- class
pulumi_azure.mediaservices.Account(resource_name, opts=None, location=None, name=None, resource_group_name=None, storage_accounts=None, __props__=None, __name__=None, __opts__=None)¶ Manages a Media Services Account.
import pulumi import pulumi_azure as azure example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe") example_account = azure.storage.Account("exampleAccount", resource_group_name=example_resource_group.name, location=example_resource_group.location, account_tier="Standard", account_replication_type="GRS") example_mediaservices_account_account = azure.mediaservices.Account("exampleMediaservices/accountAccount", location=example_resource_group.location, resource_group_name=example_resource_group.name, storage_account=[{ "id": example_account.id, "isPrimary": True, }])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
location (pulumi.Input[str]) – Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
name (pulumi.Input[str]) – Specifies the name of the Media Services Account. Changing this forces a new resource to be created.
resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the Media Services Account. Changing this forces a new resource to be created.
storage_accounts (pulumi.Input[list]) – One or more
storage_accountblocks as defined below.
The storage_accounts object supports the following:
id(pulumi.Input[str]) - Specifies the ID of the Storage Account that will be associated with the Media Services instance.isPrimary(pulumi.Input[bool]) - Specifies whether the storage account should be the primary account or not. Defaults tofalse.
location: pulumi.Output[str] = None¶Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
name: pulumi.Output[str] = None¶Specifies the name of the Media Services Account. Changing this forces a new resource to be created.
resource_group_name: pulumi.Output[str] = None¶The name of the resource group in which to create the Media Services Account. Changing this forces a new resource to be created.
storage_accounts: pulumi.Output[list] = None¶One or more
storage_accountblocks as defined below.id(str) - Specifies the ID of the Storage Account that will be associated with the Media Services instance.isPrimary(bool) - Specifies whether the storage account should be the primary account or not. Defaults tofalse.
- static
get(resource_name, id, opts=None, location=None, name=None, resource_group_name=None, storage_accounts=None)¶ Get an existing Account resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
location (pulumi.Input[str]) – Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
name (pulumi.Input[str]) – Specifies the name of the Media Services Account. Changing this forces a new resource to be created.
resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the Media Services Account. Changing this forces a new resource to be created.
storage_accounts (pulumi.Input[list]) – One or more
storage_accountblocks as defined below.
The storage_accounts object supports the following:
id(pulumi.Input[str]) - Specifies the ID of the Storage Account that will be associated with the Media Services instance.isPrimary(pulumi.Input[bool]) - Specifies whether the storage account should be the primary account or not. Defaults tofalse.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str