1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. MediaServices
  5. MediaAsset
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.MediaServices.MediaAsset

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This resource provides the Media Asset resource in Oracle Cloud Infrastructure Media Services service.

    Creates a new MediaAsset.

    Create MediaAsset Resource

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

    Constructor syntax

    new MediaAsset(name: string, args: MediaAssetArgs, opts?: CustomResourceOptions);
    @overload
    def MediaAsset(resource_name: str,
                   args: MediaAssetArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def MediaAsset(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   type: Optional[str] = None,
                   compartment_id: Optional[str] = None,
                   metadatas: Optional[Sequence[_mediaservices.MediaAssetMetadataArgs]] = None,
                   namespace: Optional[str] = None,
                   freeform_tags: Optional[Mapping[str, str]] = None,
                   is_lock_override: Optional[bool] = None,
                   locks: Optional[Sequence[_mediaservices.MediaAssetLockArgs]] = None,
                   master_media_asset_id: Optional[str] = None,
                   media_asset_tags: Optional[Sequence[_mediaservices.MediaAssetMediaAssetTagArgs]] = None,
                   media_workflow_job_id: Optional[str] = None,
                   bucket: Optional[str] = None,
                   display_name: Optional[str] = None,
                   object: Optional[str] = None,
                   object_etag: Optional[str] = None,
                   parent_media_asset_id: Optional[str] = None,
                   segment_range_end_index: Optional[str] = None,
                   segment_range_start_index: Optional[str] = None,
                   source_media_workflow_id: Optional[str] = None,
                   source_media_workflow_version: Optional[str] = None,
                   defined_tags: Optional[Mapping[str, str]] = None)
    func NewMediaAsset(ctx *Context, name string, args MediaAssetArgs, opts ...ResourceOption) (*MediaAsset, error)
    public MediaAsset(string name, MediaAssetArgs args, CustomResourceOptions? opts = null)
    public MediaAsset(String name, MediaAssetArgs args)
    public MediaAsset(String name, MediaAssetArgs args, CustomResourceOptions options)
    
    type: oci:MediaServices:MediaAsset
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MediaAssetArgs
    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 MediaAssetArgs
    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 MediaAssetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MediaAssetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MediaAssetArgs
    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 mediaAssetResource = new Oci.MediaServices.MediaAsset("mediaAssetResource", new()
    {
        Type = "string",
        CompartmentId = "string",
        Metadatas = new[]
        {
            new Oci.MediaServices.Inputs.MediaAssetMetadataArgs
            {
                Metadata = "string",
            },
        },
        Namespace = "string",
        FreeformTags = 
        {
            { "string", "string" },
        },
        IsLockOverride = false,
        Locks = new[]
        {
            new Oci.MediaServices.Inputs.MediaAssetLockArgs
            {
                CompartmentId = "string",
                Type = "string",
                Message = "string",
                RelatedResourceId = "string",
                TimeCreated = "string",
            },
        },
        MasterMediaAssetId = "string",
        MediaAssetTags = new[]
        {
            new Oci.MediaServices.Inputs.MediaAssetMediaAssetTagArgs
            {
                Value = "string",
                Type = "string",
            },
        },
        MediaWorkflowJobId = "string",
        Bucket = "string",
        DisplayName = "string",
        Object = "string",
        ObjectEtag = "string",
        ParentMediaAssetId = "string",
        SegmentRangeEndIndex = "string",
        SegmentRangeStartIndex = "string",
        SourceMediaWorkflowId = "string",
        SourceMediaWorkflowVersion = "string",
        DefinedTags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := MediaServices.NewMediaAsset(ctx, "mediaAssetResource", &MediaServices.MediaAssetArgs{
    	Type:          pulumi.String("string"),
    	CompartmentId: pulumi.String("string"),
    	Metadatas: mediaservices.MediaAssetMetadataArray{
    		&mediaservices.MediaAssetMetadataArgs{
    			Metadata: pulumi.String("string"),
    		},
    	},
    	Namespace: pulumi.String("string"),
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	IsLockOverride: pulumi.Bool(false),
    	Locks: mediaservices.MediaAssetLockArray{
    		&mediaservices.MediaAssetLockArgs{
    			CompartmentId:     pulumi.String("string"),
    			Type:              pulumi.String("string"),
    			Message:           pulumi.String("string"),
    			RelatedResourceId: pulumi.String("string"),
    			TimeCreated:       pulumi.String("string"),
    		},
    	},
    	MasterMediaAssetId: pulumi.String("string"),
    	MediaAssetTags: mediaservices.MediaAssetMediaAssetTagArray{
    		&mediaservices.MediaAssetMediaAssetTagArgs{
    			Value: pulumi.String("string"),
    			Type:  pulumi.String("string"),
    		},
    	},
    	MediaWorkflowJobId:         pulumi.String("string"),
    	Bucket:                     pulumi.String("string"),
    	DisplayName:                pulumi.String("string"),
    	Object:                     pulumi.String("string"),
    	ObjectEtag:                 pulumi.String("string"),
    	ParentMediaAssetId:         pulumi.String("string"),
    	SegmentRangeEndIndex:       pulumi.String("string"),
    	SegmentRangeStartIndex:     pulumi.String("string"),
    	SourceMediaWorkflowId:      pulumi.String("string"),
    	SourceMediaWorkflowVersion: pulumi.String("string"),
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var mediaAssetResource = new MediaAsset("mediaAssetResource", MediaAssetArgs.builder()
        .type("string")
        .compartmentId("string")
        .metadatas(MediaAssetMetadataArgs.builder()
            .metadata("string")
            .build())
        .namespace("string")
        .freeformTags(Map.of("string", "string"))
        .isLockOverride(false)
        .locks(MediaAssetLockArgs.builder()
            .compartmentId("string")
            .type("string")
            .message("string")
            .relatedResourceId("string")
            .timeCreated("string")
            .build())
        .masterMediaAssetId("string")
        .mediaAssetTags(MediaAssetMediaAssetTagArgs.builder()
            .value("string")
            .type("string")
            .build())
        .mediaWorkflowJobId("string")
        .bucket("string")
        .displayName("string")
        .object("string")
        .objectEtag("string")
        .parentMediaAssetId("string")
        .segmentRangeEndIndex("string")
        .segmentRangeStartIndex("string")
        .sourceMediaWorkflowId("string")
        .sourceMediaWorkflowVersion("string")
        .definedTags(Map.of("string", "string"))
        .build());
    
    media_asset_resource = oci.media_services.MediaAsset("mediaAssetResource",
        type="string",
        compartment_id="string",
        metadatas=[oci.media_services.MediaAssetMetadataArgs(
            metadata="string",
        )],
        namespace="string",
        freeform_tags={
            "string": "string",
        },
        is_lock_override=False,
        locks=[oci.media_services.MediaAssetLockArgs(
            compartment_id="string",
            type="string",
            message="string",
            related_resource_id="string",
            time_created="string",
        )],
        master_media_asset_id="string",
        media_asset_tags=[oci.media_services.MediaAssetMediaAssetTagArgs(
            value="string",
            type="string",
        )],
        media_workflow_job_id="string",
        bucket="string",
        display_name="string",
        object="string",
        object_etag="string",
        parent_media_asset_id="string",
        segment_range_end_index="string",
        segment_range_start_index="string",
        source_media_workflow_id="string",
        source_media_workflow_version="string",
        defined_tags={
            "string": "string",
        })
    
    const mediaAssetResource = new oci.mediaservices.MediaAsset("mediaAssetResource", {
        type: "string",
        compartmentId: "string",
        metadatas: [{
            metadata: "string",
        }],
        namespace: "string",
        freeformTags: {
            string: "string",
        },
        isLockOverride: false,
        locks: [{
            compartmentId: "string",
            type: "string",
            message: "string",
            relatedResourceId: "string",
            timeCreated: "string",
        }],
        masterMediaAssetId: "string",
        mediaAssetTags: [{
            value: "string",
            type: "string",
        }],
        mediaWorkflowJobId: "string",
        bucket: "string",
        displayName: "string",
        object: "string",
        objectEtag: "string",
        parentMediaAssetId: "string",
        segmentRangeEndIndex: "string",
        segmentRangeStartIndex: "string",
        sourceMediaWorkflowId: "string",
        sourceMediaWorkflowVersion: "string",
        definedTags: {
            string: "string",
        },
    });
    
    type: oci:MediaServices:MediaAsset
    properties:
        bucket: string
        compartmentId: string
        definedTags:
            string: string
        displayName: string
        freeformTags:
            string: string
        isLockOverride: false
        locks:
            - compartmentId: string
              message: string
              relatedResourceId: string
              timeCreated: string
              type: string
        masterMediaAssetId: string
        mediaAssetTags:
            - type: string
              value: string
        mediaWorkflowJobId: string
        metadatas:
            - metadata: string
        namespace: string
        object: string
        objectEtag: string
        parentMediaAssetId: string
        segmentRangeEndIndex: string
        segmentRangeStartIndex: string
        sourceMediaWorkflowId: string
        sourceMediaWorkflowVersion: string
        type: string
    

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

    CompartmentId string
    (Updatable) Compartment Identifier.
    Type string

    (Updatable) The type of the media asset.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Bucket string
    The name of the object storage bucket where this asset is located.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
    FreeformTags Dictionary<string, string>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    IsLockOverride bool
    Locks List<MediaAssetLock>
    Locks associated with this resource.
    MasterMediaAssetId string
    (Updatable) The ID of the senior most asset from which this asset is derived.
    MediaAssetTags List<MediaAssetMediaAssetTag>
    (Updatable) list of tags for the MediaAsset.
    MediaWorkflowJobId string
    The ID of the MediaWorkflowJob used to produce this asset.
    Metadatas List<MediaAssetMetadata>
    (Updatable) List of Metadata.
    Namespace string
    The object storage namespace where this asset is located.
    Object string
    The object storage object name that identifies this asset.
    ObjectEtag string
    eTag of the underlying object storage object.
    ParentMediaAssetId string
    (Updatable) The ID of the parent asset from which this asset is derived.
    SegmentRangeEndIndex string
    The end index for video segment files.
    SegmentRangeStartIndex string
    The start index for video segment files.
    SourceMediaWorkflowId string
    The ID of the MediaWorkflow used to produce this asset.
    SourceMediaWorkflowVersion string
    The version of the MediaWorkflow used to produce this asset.
    CompartmentId string
    (Updatable) Compartment Identifier.
    Type string

    (Updatable) The type of the media asset.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Bucket string
    The name of the object storage bucket where this asset is located.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
    FreeformTags map[string]string
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    IsLockOverride bool
    Locks []MediaAssetLockArgs
    Locks associated with this resource.
    MasterMediaAssetId string
    (Updatable) The ID of the senior most asset from which this asset is derived.
    MediaAssetTags []MediaAssetMediaAssetTagArgs
    (Updatable) list of tags for the MediaAsset.
    MediaWorkflowJobId string
    The ID of the MediaWorkflowJob used to produce this asset.
    Metadatas []MediaAssetMetadataArgs
    (Updatable) List of Metadata.
    Namespace string
    The object storage namespace where this asset is located.
    Object string
    The object storage object name that identifies this asset.
    ObjectEtag string
    eTag of the underlying object storage object.
    ParentMediaAssetId string
    (Updatable) The ID of the parent asset from which this asset is derived.
    SegmentRangeEndIndex string
    The end index for video segment files.
    SegmentRangeStartIndex string
    The start index for video segment files.
    SourceMediaWorkflowId string
    The ID of the MediaWorkflow used to produce this asset.
    SourceMediaWorkflowVersion string
    The version of the MediaWorkflow used to produce this asset.
    compartmentId String
    (Updatable) Compartment Identifier.
    type String

    (Updatable) The type of the media asset.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    bucket String
    The name of the object storage bucket where this asset is located.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
    freeformTags Map<String,String>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    isLockOverride Boolean
    locks List<MediaAssetLock>
    Locks associated with this resource.
    masterMediaAssetId String
    (Updatable) The ID of the senior most asset from which this asset is derived.
    mediaAssetTags List<MediaAssetMediaAssetTag>
    (Updatable) list of tags for the MediaAsset.
    mediaWorkflowJobId String
    The ID of the MediaWorkflowJob used to produce this asset.
    metadatas List<MediaAssetMetadata>
    (Updatable) List of Metadata.
    namespace String
    The object storage namespace where this asset is located.
    object String
    The object storage object name that identifies this asset.
    objectEtag String
    eTag of the underlying object storage object.
    parentMediaAssetId String
    (Updatable) The ID of the parent asset from which this asset is derived.
    segmentRangeEndIndex String
    The end index for video segment files.
    segmentRangeStartIndex String
    The start index for video segment files.
    sourceMediaWorkflowId String
    The ID of the MediaWorkflow used to produce this asset.
    sourceMediaWorkflowVersion String
    The version of the MediaWorkflow used to produce this asset.
    compartmentId string
    (Updatable) Compartment Identifier.
    type string

    (Updatable) The type of the media asset.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    bucket string
    The name of the object storage bucket where this asset is located.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName string
    (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
    freeformTags {[key: string]: string}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    isLockOverride boolean
    locks MediaAssetLock[]
    Locks associated with this resource.
    masterMediaAssetId string
    (Updatable) The ID of the senior most asset from which this asset is derived.
    mediaAssetTags MediaAssetMediaAssetTag[]
    (Updatable) list of tags for the MediaAsset.
    mediaWorkflowJobId string
    The ID of the MediaWorkflowJob used to produce this asset.
    metadatas MediaAssetMetadata[]
    (Updatable) List of Metadata.
    namespace string
    The object storage namespace where this asset is located.
    object string
    The object storage object name that identifies this asset.
    objectEtag string
    eTag of the underlying object storage object.
    parentMediaAssetId string
    (Updatable) The ID of the parent asset from which this asset is derived.
    segmentRangeEndIndex string
    The end index for video segment files.
    segmentRangeStartIndex string
    The start index for video segment files.
    sourceMediaWorkflowId string
    The ID of the MediaWorkflow used to produce this asset.
    sourceMediaWorkflowVersion string
    The version of the MediaWorkflow used to produce this asset.
    compartment_id str
    (Updatable) Compartment Identifier.
    type str

    (Updatable) The type of the media asset.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    bucket str
    The name of the object storage bucket where this asset is located.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    display_name str
    (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
    freeform_tags Mapping[str, str]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    is_lock_override bool
    locks Sequence[mediaservices.MediaAssetLockArgs]
    Locks associated with this resource.
    master_media_asset_id str
    (Updatable) The ID of the senior most asset from which this asset is derived.
    media_asset_tags Sequence[mediaservices.MediaAssetMediaAssetTagArgs]
    (Updatable) list of tags for the MediaAsset.
    media_workflow_job_id str
    The ID of the MediaWorkflowJob used to produce this asset.
    metadatas Sequence[mediaservices.MediaAssetMetadataArgs]
    (Updatable) List of Metadata.
    namespace str
    The object storage namespace where this asset is located.
    object str
    The object storage object name that identifies this asset.
    object_etag str
    eTag of the underlying object storage object.
    parent_media_asset_id str
    (Updatable) The ID of the parent asset from which this asset is derived.
    segment_range_end_index str
    The end index for video segment files.
    segment_range_start_index str
    The start index for video segment files.
    source_media_workflow_id str
    The ID of the MediaWorkflow used to produce this asset.
    source_media_workflow_version str
    The version of the MediaWorkflow used to produce this asset.
    compartmentId String
    (Updatable) Compartment Identifier.
    type String

    (Updatable) The type of the media asset.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    bucket String
    The name of the object storage bucket where this asset is located.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
    freeformTags Map<String>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    isLockOverride Boolean
    locks List<Property Map>
    Locks associated with this resource.
    masterMediaAssetId String
    (Updatable) The ID of the senior most asset from which this asset is derived.
    mediaAssetTags List<Property Map>
    (Updatable) list of tags for the MediaAsset.
    mediaWorkflowJobId String
    The ID of the MediaWorkflowJob used to produce this asset.
    metadatas List<Property Map>
    (Updatable) List of Metadata.
    namespace String
    The object storage namespace where this asset is located.
    object String
    The object storage object name that identifies this asset.
    objectEtag String
    eTag of the underlying object storage object.
    parentMediaAssetId String
    (Updatable) The ID of the parent asset from which this asset is derived.
    segmentRangeEndIndex String
    The end index for video segment files.
    segmentRangeStartIndex String
    The start index for video segment files.
    sourceMediaWorkflowId String
    The ID of the MediaWorkflow used to produce this asset.
    sourceMediaWorkflowVersion String
    The version of the MediaWorkflow used to produce this asset.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current state of the MediaAsset.
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time when the MediaAsset was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time when the MediaAsset was updated. An RFC3339 formatted datetime string.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current state of the MediaAsset.
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time when the MediaAsset was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time when the MediaAsset was updated. An RFC3339 formatted datetime string.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current state of the MediaAsset.
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time when the MediaAsset was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time when the MediaAsset was updated. An RFC3339 formatted datetime string.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The current state of the MediaAsset.
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time when the MediaAsset was created. An RFC3339 formatted datetime string.
    timeUpdated string
    The time when the MediaAsset was updated. An RFC3339 formatted datetime string.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The current state of the MediaAsset.
    system_tags Mapping[str, str]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time when the MediaAsset was created. An RFC3339 formatted datetime string.
    time_updated str
    The time when the MediaAsset was updated. An RFC3339 formatted datetime string.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current state of the MediaAsset.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time when the MediaAsset was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time when the MediaAsset was updated. An RFC3339 formatted datetime string.

    Look up Existing MediaAsset Resource

    Get an existing MediaAsset 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?: MediaAssetState, opts?: CustomResourceOptions): MediaAsset
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket: Optional[str] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            is_lock_override: Optional[bool] = None,
            locks: Optional[Sequence[_mediaservices.MediaAssetLockArgs]] = None,
            master_media_asset_id: Optional[str] = None,
            media_asset_tags: Optional[Sequence[_mediaservices.MediaAssetMediaAssetTagArgs]] = None,
            media_workflow_job_id: Optional[str] = None,
            metadatas: Optional[Sequence[_mediaservices.MediaAssetMetadataArgs]] = None,
            namespace: Optional[str] = None,
            object: Optional[str] = None,
            object_etag: Optional[str] = None,
            parent_media_asset_id: Optional[str] = None,
            segment_range_end_index: Optional[str] = None,
            segment_range_start_index: Optional[str] = None,
            source_media_workflow_id: Optional[str] = None,
            source_media_workflow_version: Optional[str] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, str]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None,
            type: Optional[str] = None) -> MediaAsset
    func GetMediaAsset(ctx *Context, name string, id IDInput, state *MediaAssetState, opts ...ResourceOption) (*MediaAsset, error)
    public static MediaAsset Get(string name, Input<string> id, MediaAssetState? state, CustomResourceOptions? opts = null)
    public static MediaAsset get(String name, Output<String> id, MediaAssetState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    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:
    Bucket string
    The name of the object storage bucket where this asset is located.
    CompartmentId string
    (Updatable) Compartment Identifier.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
    FreeformTags Dictionary<string, string>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    IsLockOverride bool
    Locks List<MediaAssetLock>
    Locks associated with this resource.
    MasterMediaAssetId string
    (Updatable) The ID of the senior most asset from which this asset is derived.
    MediaAssetTags List<MediaAssetMediaAssetTag>
    (Updatable) list of tags for the MediaAsset.
    MediaWorkflowJobId string
    The ID of the MediaWorkflowJob used to produce this asset.
    Metadatas List<MediaAssetMetadata>
    (Updatable) List of Metadata.
    Namespace string
    The object storage namespace where this asset is located.
    Object string
    The object storage object name that identifies this asset.
    ObjectEtag string
    eTag of the underlying object storage object.
    ParentMediaAssetId string
    (Updatable) The ID of the parent asset from which this asset is derived.
    SegmentRangeEndIndex string
    The end index for video segment files.
    SegmentRangeStartIndex string
    The start index for video segment files.
    SourceMediaWorkflowId string
    The ID of the MediaWorkflow used to produce this asset.
    SourceMediaWorkflowVersion string
    The version of the MediaWorkflow used to produce this asset.
    State string
    The current state of the MediaAsset.
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time when the MediaAsset was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time when the MediaAsset was updated. An RFC3339 formatted datetime string.
    Type string

    (Updatable) The type of the media asset.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Bucket string
    The name of the object storage bucket where this asset is located.
    CompartmentId string
    (Updatable) Compartment Identifier.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
    FreeformTags map[string]string
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    IsLockOverride bool
    Locks []MediaAssetLockArgs
    Locks associated with this resource.
    MasterMediaAssetId string
    (Updatable) The ID of the senior most asset from which this asset is derived.
    MediaAssetTags []MediaAssetMediaAssetTagArgs
    (Updatable) list of tags for the MediaAsset.
    MediaWorkflowJobId string
    The ID of the MediaWorkflowJob used to produce this asset.
    Metadatas []MediaAssetMetadataArgs
    (Updatable) List of Metadata.
    Namespace string
    The object storage namespace where this asset is located.
    Object string
    The object storage object name that identifies this asset.
    ObjectEtag string
    eTag of the underlying object storage object.
    ParentMediaAssetId string
    (Updatable) The ID of the parent asset from which this asset is derived.
    SegmentRangeEndIndex string
    The end index for video segment files.
    SegmentRangeStartIndex string
    The start index for video segment files.
    SourceMediaWorkflowId string
    The ID of the MediaWorkflow used to produce this asset.
    SourceMediaWorkflowVersion string
    The version of the MediaWorkflow used to produce this asset.
    State string
    The current state of the MediaAsset.
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time when the MediaAsset was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time when the MediaAsset was updated. An RFC3339 formatted datetime string.
    Type string

    (Updatable) The type of the media asset.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    bucket String
    The name of the object storage bucket where this asset is located.
    compartmentId String
    (Updatable) Compartment Identifier.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
    freeformTags Map<String,String>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    isLockOverride Boolean
    locks List<MediaAssetLock>
    Locks associated with this resource.
    masterMediaAssetId String
    (Updatable) The ID of the senior most asset from which this asset is derived.
    mediaAssetTags List<MediaAssetMediaAssetTag>
    (Updatable) list of tags for the MediaAsset.
    mediaWorkflowJobId String
    The ID of the MediaWorkflowJob used to produce this asset.
    metadatas List<MediaAssetMetadata>
    (Updatable) List of Metadata.
    namespace String
    The object storage namespace where this asset is located.
    object String
    The object storage object name that identifies this asset.
    objectEtag String
    eTag of the underlying object storage object.
    parentMediaAssetId String
    (Updatable) The ID of the parent asset from which this asset is derived.
    segmentRangeEndIndex String
    The end index for video segment files.
    segmentRangeStartIndex String
    The start index for video segment files.
    sourceMediaWorkflowId String
    The ID of the MediaWorkflow used to produce this asset.
    sourceMediaWorkflowVersion String
    The version of the MediaWorkflow used to produce this asset.
    state String
    The current state of the MediaAsset.
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time when the MediaAsset was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time when the MediaAsset was updated. An RFC3339 formatted datetime string.
    type String

    (Updatable) The type of the media asset.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    bucket string
    The name of the object storage bucket where this asset is located.
    compartmentId string
    (Updatable) Compartment Identifier.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName string
    (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
    freeformTags {[key: string]: string}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    isLockOverride boolean
    locks MediaAssetLock[]
    Locks associated with this resource.
    masterMediaAssetId string
    (Updatable) The ID of the senior most asset from which this asset is derived.
    mediaAssetTags MediaAssetMediaAssetTag[]
    (Updatable) list of tags for the MediaAsset.
    mediaWorkflowJobId string
    The ID of the MediaWorkflowJob used to produce this asset.
    metadatas MediaAssetMetadata[]
    (Updatable) List of Metadata.
    namespace string
    The object storage namespace where this asset is located.
    object string
    The object storage object name that identifies this asset.
    objectEtag string
    eTag of the underlying object storage object.
    parentMediaAssetId string
    (Updatable) The ID of the parent asset from which this asset is derived.
    segmentRangeEndIndex string
    The end index for video segment files.
    segmentRangeStartIndex string
    The start index for video segment files.
    sourceMediaWorkflowId string
    The ID of the MediaWorkflow used to produce this asset.
    sourceMediaWorkflowVersion string
    The version of the MediaWorkflow used to produce this asset.
    state string
    The current state of the MediaAsset.
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time when the MediaAsset was created. An RFC3339 formatted datetime string.
    timeUpdated string
    The time when the MediaAsset was updated. An RFC3339 formatted datetime string.
    type string

    (Updatable) The type of the media asset.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    bucket str
    The name of the object storage bucket where this asset is located.
    compartment_id str
    (Updatable) Compartment Identifier.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    display_name str
    (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
    freeform_tags Mapping[str, str]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    is_lock_override bool
    locks Sequence[mediaservices.MediaAssetLockArgs]
    Locks associated with this resource.
    master_media_asset_id str
    (Updatable) The ID of the senior most asset from which this asset is derived.
    media_asset_tags Sequence[mediaservices.MediaAssetMediaAssetTagArgs]
    (Updatable) list of tags for the MediaAsset.
    media_workflow_job_id str
    The ID of the MediaWorkflowJob used to produce this asset.
    metadatas Sequence[mediaservices.MediaAssetMetadataArgs]
    (Updatable) List of Metadata.
    namespace str
    The object storage namespace where this asset is located.
    object str
    The object storage object name that identifies this asset.
    object_etag str
    eTag of the underlying object storage object.
    parent_media_asset_id str
    (Updatable) The ID of the parent asset from which this asset is derived.
    segment_range_end_index str
    The end index for video segment files.
    segment_range_start_index str
    The start index for video segment files.
    source_media_workflow_id str
    The ID of the MediaWorkflow used to produce this asset.
    source_media_workflow_version str
    The version of the MediaWorkflow used to produce this asset.
    state str
    The current state of the MediaAsset.
    system_tags Mapping[str, str]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time when the MediaAsset was created. An RFC3339 formatted datetime string.
    time_updated str
    The time when the MediaAsset was updated. An RFC3339 formatted datetime string.
    type str

    (Updatable) The type of the media asset.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    bucket String
    The name of the object storage bucket where this asset is located.
    compartmentId String
    (Updatable) Compartment Identifier.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
    freeformTags Map<String>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    isLockOverride Boolean
    locks List<Property Map>
    Locks associated with this resource.
    masterMediaAssetId String
    (Updatable) The ID of the senior most asset from which this asset is derived.
    mediaAssetTags List<Property Map>
    (Updatable) list of tags for the MediaAsset.
    mediaWorkflowJobId String
    The ID of the MediaWorkflowJob used to produce this asset.
    metadatas List<Property Map>
    (Updatable) List of Metadata.
    namespace String
    The object storage namespace where this asset is located.
    object String
    The object storage object name that identifies this asset.
    objectEtag String
    eTag of the underlying object storage object.
    parentMediaAssetId String
    (Updatable) The ID of the parent asset from which this asset is derived.
    segmentRangeEndIndex String
    The end index for video segment files.
    segmentRangeStartIndex String
    The start index for video segment files.
    sourceMediaWorkflowId String
    The ID of the MediaWorkflow used to produce this asset.
    sourceMediaWorkflowVersion String
    The version of the MediaWorkflow used to produce this asset.
    state String
    The current state of the MediaAsset.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time when the MediaAsset was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time when the MediaAsset was updated. An RFC3339 formatted datetime string.
    type String

    (Updatable) The type of the media asset.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Supporting Types

    MediaAssetLock, MediaAssetLockArgs

    CompartmentId string
    (Updatable) The compartment ID of the lock.
    Type string
    Type of the lock.
    Message string
    A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
    RelatedResourceId string
    The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
    TimeCreated string
    When the lock was created.
    CompartmentId string
    (Updatable) The compartment ID of the lock.
    Type string
    Type of the lock.
    Message string
    A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
    RelatedResourceId string
    The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
    TimeCreated string
    When the lock was created.
    compartmentId String
    (Updatable) The compartment ID of the lock.
    type String
    Type of the lock.
    message String
    A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
    relatedResourceId String
    The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
    timeCreated String
    When the lock was created.
    compartmentId string
    (Updatable) The compartment ID of the lock.
    type string
    Type of the lock.
    message string
    A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
    relatedResourceId string
    The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
    timeCreated string
    When the lock was created.
    compartment_id str
    (Updatable) The compartment ID of the lock.
    type str
    Type of the lock.
    message str
    A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
    related_resource_id str
    The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
    time_created str
    When the lock was created.
    compartmentId String
    (Updatable) The compartment ID of the lock.
    type String
    Type of the lock.
    message String
    A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
    relatedResourceId String
    The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
    timeCreated String
    When the lock was created.

    MediaAssetMediaAssetTag, MediaAssetMediaAssetTagArgs

    Value string
    (Updatable) Tag of the MediaAsset.
    Type string
    (Updatable) Type of the tag.
    Value string
    (Updatable) Tag of the MediaAsset.
    Type string
    (Updatable) Type of the tag.
    value String
    (Updatable) Tag of the MediaAsset.
    type String
    (Updatable) Type of the tag.
    value string
    (Updatable) Tag of the MediaAsset.
    type string
    (Updatable) Type of the tag.
    value str
    (Updatable) Tag of the MediaAsset.
    type str
    (Updatable) Type of the tag.
    value String
    (Updatable) Tag of the MediaAsset.
    type String
    (Updatable) Type of the tag.

    MediaAssetMetadata, MediaAssetMetadataArgs

    Metadata string
    (Updatable) JSON string containing the technial metadata for the media asset.
    Metadata string
    (Updatable) JSON string containing the technial metadata for the media asset.
    metadata String
    (Updatable) JSON string containing the technial metadata for the media asset.
    metadata string
    (Updatable) JSON string containing the technial metadata for the media asset.
    metadata str
    (Updatable) JSON string containing the technial metadata for the media asset.
    metadata String
    (Updatable) JSON string containing the technial metadata for the media asset.

    Import

    MediaAssets can be imported using the id, e.g.

    $ pulumi import oci:MediaServices/mediaAsset:MediaAsset test_media_asset "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi