1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. MediaServices
  5. StreamPackagingConfig
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.MediaServices.StreamPackagingConfig

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This resource provides the Stream Packaging Config resource in Oracle Cloud Infrastructure Media Services service.

    Creates a new Packaging Configuration.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testStreamPackagingConfig = new oci.mediaservices.StreamPackagingConfig("testStreamPackagingConfig", {
        displayName: _var.stream_packaging_config_display_name,
        distributionChannelId: oci_mysql_channel.test_channel.id,
        segmentTimeInSeconds: _var.stream_packaging_config_segment_time_in_seconds,
        streamPackagingFormat: _var.stream_packaging_config_stream_packaging_format,
        definedTags: {
            "foo-namespace.bar-key": "value",
        },
        encryption: {
            algorithm: _var.stream_packaging_config_encryption_algorithm,
            kmsKeyId: oci_kms_key.test_key.id,
        },
        freeformTags: {
            "bar-key": "value",
        },
        locks: [{
            compartmentId: _var.compartment_id,
            type: _var.stream_packaging_config_locks_type,
            message: _var.stream_packaging_config_locks_message,
            relatedResourceId: oci_usage_proxy_resource.test_resource.id,
            timeCreated: _var.stream_packaging_config_locks_time_created,
        }],
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_stream_packaging_config = oci.media_services.StreamPackagingConfig("testStreamPackagingConfig",
        display_name=var["stream_packaging_config_display_name"],
        distribution_channel_id=oci_mysql_channel["test_channel"]["id"],
        segment_time_in_seconds=var["stream_packaging_config_segment_time_in_seconds"],
        stream_packaging_format=var["stream_packaging_config_stream_packaging_format"],
        defined_tags={
            "foo-namespace.bar-key": "value",
        },
        encryption=oci.media_services.StreamPackagingConfigEncryptionArgs(
            algorithm=var["stream_packaging_config_encryption_algorithm"],
            kms_key_id=oci_kms_key["test_key"]["id"],
        ),
        freeform_tags={
            "bar-key": "value",
        },
        locks=[oci.media_services.StreamPackagingConfigLockArgs(
            compartment_id=var["compartment_id"],
            type=var["stream_packaging_config_locks_type"],
            message=var["stream_packaging_config_locks_message"],
            related_resource_id=oci_usage_proxy_resource["test_resource"]["id"],
            time_created=var["stream_packaging_config_locks_time_created"],
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/MediaServices"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := MediaServices.NewStreamPackagingConfig(ctx, "testStreamPackagingConfig", &MediaServices.StreamPackagingConfigArgs{
    			DisplayName:           pulumi.Any(_var.Stream_packaging_config_display_name),
    			DistributionChannelId: pulumi.Any(oci_mysql_channel.Test_channel.Id),
    			SegmentTimeInSeconds:  pulumi.Any(_var.Stream_packaging_config_segment_time_in_seconds),
    			StreamPackagingFormat: pulumi.Any(_var.Stream_packaging_config_stream_packaging_format),
    			DefinedTags: pulumi.Map{
    				"foo-namespace.bar-key": pulumi.Any("value"),
    			},
    			Encryption: &mediaservices.StreamPackagingConfigEncryptionArgs{
    				Algorithm: pulumi.Any(_var.Stream_packaging_config_encryption_algorithm),
    				KmsKeyId:  pulumi.Any(oci_kms_key.Test_key.Id),
    			},
    			FreeformTags: pulumi.Map{
    				"bar-key": pulumi.Any("value"),
    			},
    			Locks: mediaservices.StreamPackagingConfigLockArray{
    				&mediaservices.StreamPackagingConfigLockArgs{
    					CompartmentId:     pulumi.Any(_var.Compartment_id),
    					Type:              pulumi.Any(_var.Stream_packaging_config_locks_type),
    					Message:           pulumi.Any(_var.Stream_packaging_config_locks_message),
    					RelatedResourceId: pulumi.Any(oci_usage_proxy_resource.Test_resource.Id),
    					TimeCreated:       pulumi.Any(_var.Stream_packaging_config_locks_time_created),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testStreamPackagingConfig = new Oci.MediaServices.StreamPackagingConfig("testStreamPackagingConfig", new()
        {
            DisplayName = @var.Stream_packaging_config_display_name,
            DistributionChannelId = oci_mysql_channel.Test_channel.Id,
            SegmentTimeInSeconds = @var.Stream_packaging_config_segment_time_in_seconds,
            StreamPackagingFormat = @var.Stream_packaging_config_stream_packaging_format,
            DefinedTags = 
            {
                { "foo-namespace.bar-key", "value" },
            },
            Encryption = new Oci.MediaServices.Inputs.StreamPackagingConfigEncryptionArgs
            {
                Algorithm = @var.Stream_packaging_config_encryption_algorithm,
                KmsKeyId = oci_kms_key.Test_key.Id,
            },
            FreeformTags = 
            {
                { "bar-key", "value" },
            },
            Locks = new[]
            {
                new Oci.MediaServices.Inputs.StreamPackagingConfigLockArgs
                {
                    CompartmentId = @var.Compartment_id,
                    Type = @var.Stream_packaging_config_locks_type,
                    Message = @var.Stream_packaging_config_locks_message,
                    RelatedResourceId = oci_usage_proxy_resource.Test_resource.Id,
                    TimeCreated = @var.Stream_packaging_config_locks_time_created,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.MediaServices.StreamPackagingConfig;
    import com.pulumi.oci.MediaServices.StreamPackagingConfigArgs;
    import com.pulumi.oci.MediaServices.inputs.StreamPackagingConfigEncryptionArgs;
    import com.pulumi.oci.MediaServices.inputs.StreamPackagingConfigLockArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var testStreamPackagingConfig = new StreamPackagingConfig("testStreamPackagingConfig", StreamPackagingConfigArgs.builder()        
                .displayName(var_.stream_packaging_config_display_name())
                .distributionChannelId(oci_mysql_channel.test_channel().id())
                .segmentTimeInSeconds(var_.stream_packaging_config_segment_time_in_seconds())
                .streamPackagingFormat(var_.stream_packaging_config_stream_packaging_format())
                .definedTags(Map.of("foo-namespace.bar-key", "value"))
                .encryption(StreamPackagingConfigEncryptionArgs.builder()
                    .algorithm(var_.stream_packaging_config_encryption_algorithm())
                    .kmsKeyId(oci_kms_key.test_key().id())
                    .build())
                .freeformTags(Map.of("bar-key", "value"))
                .locks(StreamPackagingConfigLockArgs.builder()
                    .compartmentId(var_.compartment_id())
                    .type(var_.stream_packaging_config_locks_type())
                    .message(var_.stream_packaging_config_locks_message())
                    .relatedResourceId(oci_usage_proxy_resource.test_resource().id())
                    .timeCreated(var_.stream_packaging_config_locks_time_created())
                    .build())
                .build());
    
        }
    }
    
    resources:
      testStreamPackagingConfig:
        type: oci:MediaServices:StreamPackagingConfig
        properties:
          #Required
          displayName: ${var.stream_packaging_config_display_name}
          distributionChannelId: ${oci_mysql_channel.test_channel.id}
          segmentTimeInSeconds: ${var.stream_packaging_config_segment_time_in_seconds}
          streamPackagingFormat: ${var.stream_packaging_config_stream_packaging_format}
          #Optional
          definedTags:
            foo-namespace.bar-key: value
          encryption:
            algorithm: ${var.stream_packaging_config_encryption_algorithm}
            kmsKeyId: ${oci_kms_key.test_key.id}
          freeformTags:
            bar-key: value
          locks:
            - compartmentId: ${var.compartment_id}
              type: ${var.stream_packaging_config_locks_type}
              message: ${var.stream_packaging_config_locks_message}
              relatedResourceId: ${oci_usage_proxy_resource.test_resource.id}
              timeCreated: ${var.stream_packaging_config_locks_time_created}
    

    Create StreamPackagingConfig Resource

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

    Constructor syntax

    new StreamPackagingConfig(name: string, args: StreamPackagingConfigArgs, opts?: CustomResourceOptions);
    @overload
    def StreamPackagingConfig(resource_name: str,
                              args: StreamPackagingConfigArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def StreamPackagingConfig(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              display_name: Optional[str] = None,
                              distribution_channel_id: Optional[str] = None,
                              segment_time_in_seconds: Optional[int] = None,
                              stream_packaging_format: Optional[str] = None,
                              defined_tags: Optional[Mapping[str, Any]] = None,
                              encryption: Optional[_mediaservices.StreamPackagingConfigEncryptionArgs] = None,
                              freeform_tags: Optional[Mapping[str, Any]] = None,
                              is_lock_override: Optional[bool] = None,
                              locks: Optional[Sequence[_mediaservices.StreamPackagingConfigLockArgs]] = None)
    func NewStreamPackagingConfig(ctx *Context, name string, args StreamPackagingConfigArgs, opts ...ResourceOption) (*StreamPackagingConfig, error)
    public StreamPackagingConfig(string name, StreamPackagingConfigArgs args, CustomResourceOptions? opts = null)
    public StreamPackagingConfig(String name, StreamPackagingConfigArgs args)
    public StreamPackagingConfig(String name, StreamPackagingConfigArgs args, CustomResourceOptions options)
    
    type: oci:MediaServices:StreamPackagingConfig
    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 StreamPackagingConfigArgs
    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 StreamPackagingConfigArgs
    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 StreamPackagingConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StreamPackagingConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StreamPackagingConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var streamPackagingConfigResource = new Oci.MediaServices.StreamPackagingConfig("streamPackagingConfigResource", new()
    {
        DisplayName = "string",
        DistributionChannelId = "string",
        SegmentTimeInSeconds = 0,
        StreamPackagingFormat = "string",
        DefinedTags = 
        {
            { "string", "any" },
        },
        Encryption = new Oci.MediaServices.Inputs.StreamPackagingConfigEncryptionArgs
        {
            Algorithm = "string",
            KmsKeyId = "string",
        },
        FreeformTags = 
        {
            { "string", "any" },
        },
        IsLockOverride = false,
        Locks = new[]
        {
            new Oci.MediaServices.Inputs.StreamPackagingConfigLockArgs
            {
                CompartmentId = "string",
                Type = "string",
                Message = "string",
                RelatedResourceId = "string",
                TimeCreated = "string",
            },
        },
    });
    
    example, err := MediaServices.NewStreamPackagingConfig(ctx, "streamPackagingConfigResource", &MediaServices.StreamPackagingConfigArgs{
    	DisplayName:           pulumi.String("string"),
    	DistributionChannelId: pulumi.String("string"),
    	SegmentTimeInSeconds:  pulumi.Int(0),
    	StreamPackagingFormat: pulumi.String("string"),
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	Encryption: &mediaservices.StreamPackagingConfigEncryptionArgs{
    		Algorithm: pulumi.String("string"),
    		KmsKeyId:  pulumi.String("string"),
    	},
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	IsLockOverride: pulumi.Bool(false),
    	Locks: mediaservices.StreamPackagingConfigLockArray{
    		&mediaservices.StreamPackagingConfigLockArgs{
    			CompartmentId:     pulumi.String("string"),
    			Type:              pulumi.String("string"),
    			Message:           pulumi.String("string"),
    			RelatedResourceId: pulumi.String("string"),
    			TimeCreated:       pulumi.String("string"),
    		},
    	},
    })
    
    var streamPackagingConfigResource = new StreamPackagingConfig("streamPackagingConfigResource", StreamPackagingConfigArgs.builder()        
        .displayName("string")
        .distributionChannelId("string")
        .segmentTimeInSeconds(0)
        .streamPackagingFormat("string")
        .definedTags(Map.of("string", "any"))
        .encryption(StreamPackagingConfigEncryptionArgs.builder()
            .algorithm("string")
            .kmsKeyId("string")
            .build())
        .freeformTags(Map.of("string", "any"))
        .isLockOverride(false)
        .locks(StreamPackagingConfigLockArgs.builder()
            .compartmentId("string")
            .type("string")
            .message("string")
            .relatedResourceId("string")
            .timeCreated("string")
            .build())
        .build());
    
    stream_packaging_config_resource = oci.media_services.StreamPackagingConfig("streamPackagingConfigResource",
        display_name="string",
        distribution_channel_id="string",
        segment_time_in_seconds=0,
        stream_packaging_format="string",
        defined_tags={
            "string": "any",
        },
        encryption=oci.media_services.StreamPackagingConfigEncryptionArgs(
            algorithm="string",
            kms_key_id="string",
        ),
        freeform_tags={
            "string": "any",
        },
        is_lock_override=False,
        locks=[oci.media_services.StreamPackagingConfigLockArgs(
            compartment_id="string",
            type="string",
            message="string",
            related_resource_id="string",
            time_created="string",
        )])
    
    const streamPackagingConfigResource = new oci.mediaservices.StreamPackagingConfig("streamPackagingConfigResource", {
        displayName: "string",
        distributionChannelId: "string",
        segmentTimeInSeconds: 0,
        streamPackagingFormat: "string",
        definedTags: {
            string: "any",
        },
        encryption: {
            algorithm: "string",
            kmsKeyId: "string",
        },
        freeformTags: {
            string: "any",
        },
        isLockOverride: false,
        locks: [{
            compartmentId: "string",
            type: "string",
            message: "string",
            relatedResourceId: "string",
            timeCreated: "string",
        }],
    });
    
    type: oci:MediaServices:StreamPackagingConfig
    properties:
        definedTags:
            string: any
        displayName: string
        distributionChannelId: string
        encryption:
            algorithm: string
            kmsKeyId: string
        freeformTags:
            string: any
        isLockOverride: false
        locks:
            - compartmentId: string
              message: string
              relatedResourceId: string
              timeCreated: string
              type: string
        segmentTimeInSeconds: 0
        streamPackagingFormat: string
    

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

    DisplayName string
    (Updatable) The name of the stream Packaging Configuration. Avoid entering confidential information.
    DistributionChannelId string
    Unique identifier of the Distribution Channel that this stream packaging configuration belongs to.
    SegmentTimeInSeconds int
    The duration in seconds for each fragment.
    StreamPackagingFormat string

    The output format for the package.

    ** 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

    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Encryption StreamPackagingConfigEncryption
    The encryption used by the stream packaging configuration.
    FreeformTags Dictionary<string, object>
    (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<StreamPackagingConfigLock>
    Locks associated with this resource.
    DisplayName string
    (Updatable) The name of the stream Packaging Configuration. Avoid entering confidential information.
    DistributionChannelId string
    Unique identifier of the Distribution Channel that this stream packaging configuration belongs to.
    SegmentTimeInSeconds int
    The duration in seconds for each fragment.
    StreamPackagingFormat string

    The output format for the package.

    ** 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

    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Encryption StreamPackagingConfigEncryptionArgs
    The encryption used by the stream packaging configuration.
    FreeformTags map[string]interface{}
    (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 []StreamPackagingConfigLockArgs
    Locks associated with this resource.
    displayName String
    (Updatable) The name of the stream Packaging Configuration. Avoid entering confidential information.
    distributionChannelId String
    Unique identifier of the Distribution Channel that this stream packaging configuration belongs to.
    segmentTimeInSeconds Integer
    The duration in seconds for each fragment.
    streamPackagingFormat String

    The output format for the package.

    ** 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

    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    encryption StreamPackagingConfigEncryption
    The encryption used by the stream packaging configuration.
    freeformTags Map<String,Object>
    (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<StreamPackagingConfigLock>
    Locks associated with this resource.
    displayName string
    (Updatable) The name of the stream Packaging Configuration. Avoid entering confidential information.
    distributionChannelId string
    Unique identifier of the Distribution Channel that this stream packaging configuration belongs to.
    segmentTimeInSeconds number
    The duration in seconds for each fragment.
    streamPackagingFormat string

    The output format for the package.

    ** 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

    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    encryption StreamPackagingConfigEncryption
    The encryption used by the stream packaging configuration.
    freeformTags {[key: string]: any}
    (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 StreamPackagingConfigLock[]
    Locks associated with this resource.
    display_name str
    (Updatable) The name of the stream Packaging Configuration. Avoid entering confidential information.
    distribution_channel_id str
    Unique identifier of the Distribution Channel that this stream packaging configuration belongs to.
    segment_time_in_seconds int
    The duration in seconds for each fragment.
    stream_packaging_format str

    The output format for the package.

    ** 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

    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    encryption mediaservices.StreamPackagingConfigEncryptionArgs
    The encryption used by the stream packaging configuration.
    freeform_tags Mapping[str, Any]
    (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.StreamPackagingConfigLockArgs]
    Locks associated with this resource.
    displayName String
    (Updatable) The name of the stream Packaging Configuration. Avoid entering confidential information.
    distributionChannelId String
    Unique identifier of the Distribution Channel that this stream packaging configuration belongs to.
    segmentTimeInSeconds Number
    The duration in seconds for each fragment.
    streamPackagingFormat String

    The output format for the package.

    ** 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

    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    encryption Property Map
    The encryption used by the stream packaging configuration.
    freeformTags Map<Any>
    (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.

    Outputs

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

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

    Look up Existing StreamPackagingConfig Resource

    Get an existing StreamPackagingConfig 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?: StreamPackagingConfigState, opts?: CustomResourceOptions): StreamPackagingConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            display_name: Optional[str] = None,
            distribution_channel_id: Optional[str] = None,
            encryption: Optional[_mediaservices.StreamPackagingConfigEncryptionArgs] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            is_lock_override: Optional[bool] = None,
            locks: Optional[Sequence[_mediaservices.StreamPackagingConfigLockArgs]] = None,
            segment_time_in_seconds: Optional[int] = None,
            state: Optional[str] = None,
            stream_packaging_format: Optional[str] = None,
            system_tags: Optional[Mapping[str, Any]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> StreamPackagingConfig
    func GetStreamPackagingConfig(ctx *Context, name string, id IDInput, state *StreamPackagingConfigState, opts ...ResourceOption) (*StreamPackagingConfig, error)
    public static StreamPackagingConfig Get(string name, Input<string> id, StreamPackagingConfigState? state, CustomResourceOptions? opts = null)
    public static StreamPackagingConfig get(String name, Output<String> id, StreamPackagingConfigState 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:
    CompartmentId string
    The compartment ID of the lock.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    (Updatable) The name of the stream Packaging Configuration. Avoid entering confidential information.
    DistributionChannelId string
    Unique identifier of the Distribution Channel that this stream packaging configuration belongs to.
    Encryption StreamPackagingConfigEncryption
    The encryption used by the stream packaging configuration.
    FreeformTags Dictionary<string, object>
    (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<StreamPackagingConfigLock>
    Locks associated with this resource.
    SegmentTimeInSeconds int
    The duration in seconds for each fragment.
    State string
    The current state of the Packaging Configuration.
    StreamPackagingFormat string

    The output format for the package.

    ** 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

    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    When the lock was created.
    TimeUpdated string
    The time when the Packaging Configuration was updated. An RFC3339 formatted datetime string.
    CompartmentId string
    The compartment ID of the lock.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    (Updatable) The name of the stream Packaging Configuration. Avoid entering confidential information.
    DistributionChannelId string
    Unique identifier of the Distribution Channel that this stream packaging configuration belongs to.
    Encryption StreamPackagingConfigEncryptionArgs
    The encryption used by the stream packaging configuration.
    FreeformTags map[string]interface{}
    (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 []StreamPackagingConfigLockArgs
    Locks associated with this resource.
    SegmentTimeInSeconds int
    The duration in seconds for each fragment.
    State string
    The current state of the Packaging Configuration.
    StreamPackagingFormat string

    The output format for the package.

    ** 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

    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    When the lock was created.
    TimeUpdated string
    The time when the Packaging Configuration was updated. An RFC3339 formatted datetime string.
    compartmentId String
    The compartment ID of the lock.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    (Updatable) The name of the stream Packaging Configuration. Avoid entering confidential information.
    distributionChannelId String
    Unique identifier of the Distribution Channel that this stream packaging configuration belongs to.
    encryption StreamPackagingConfigEncryption
    The encryption used by the stream packaging configuration.
    freeformTags Map<String,Object>
    (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<StreamPackagingConfigLock>
    Locks associated with this resource.
    segmentTimeInSeconds Integer
    The duration in seconds for each fragment.
    state String
    The current state of the Packaging Configuration.
    streamPackagingFormat String

    The output format for the package.

    ** 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

    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    When the lock was created.
    timeUpdated String
    The time when the Packaging Configuration was updated. An RFC3339 formatted datetime string.
    compartmentId string
    The compartment ID of the lock.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName string
    (Updatable) The name of the stream Packaging Configuration. Avoid entering confidential information.
    distributionChannelId string
    Unique identifier of the Distribution Channel that this stream packaging configuration belongs to.
    encryption StreamPackagingConfigEncryption
    The encryption used by the stream packaging configuration.
    freeformTags {[key: string]: any}
    (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 StreamPackagingConfigLock[]
    Locks associated with this resource.
    segmentTimeInSeconds number
    The duration in seconds for each fragment.
    state string
    The current state of the Packaging Configuration.
    streamPackagingFormat string

    The output format for the package.

    ** 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

    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    When the lock was created.
    timeUpdated string
    The time when the Packaging Configuration was updated. An RFC3339 formatted datetime string.
    compartment_id str
    The compartment ID of the lock.
    defined_tags Mapping[str, Any]
    (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) The name of the stream Packaging Configuration. Avoid entering confidential information.
    distribution_channel_id str
    Unique identifier of the Distribution Channel that this stream packaging configuration belongs to.
    encryption mediaservices.StreamPackagingConfigEncryptionArgs
    The encryption used by the stream packaging configuration.
    freeform_tags Mapping[str, Any]
    (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.StreamPackagingConfigLockArgs]
    Locks associated with this resource.
    segment_time_in_seconds int
    The duration in seconds for each fragment.
    state str
    The current state of the Packaging Configuration.
    stream_packaging_format str

    The output format for the package.

    ** 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

    system_tags Mapping[str, Any]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    When the lock was created.
    time_updated str
    The time when the Packaging Configuration was updated. An RFC3339 formatted datetime string.
    compartmentId String
    The compartment ID of the lock.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    (Updatable) The name of the stream Packaging Configuration. Avoid entering confidential information.
    distributionChannelId String
    Unique identifier of the Distribution Channel that this stream packaging configuration belongs to.
    encryption Property Map
    The encryption used by the stream packaging configuration.
    freeformTags Map<Any>
    (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.
    segmentTimeInSeconds Number
    The duration in seconds for each fragment.
    state String
    The current state of the Packaging Configuration.
    streamPackagingFormat String

    The output format for the package.

    ** 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

    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    When the lock was created.
    timeUpdated String
    The time when the Packaging Configuration was updated. An RFC3339 formatted datetime string.

    Supporting Types

    StreamPackagingConfigEncryption, StreamPackagingConfigEncryptionArgs

    Algorithm string
    The encryption algorithm for the stream packaging configuration.
    KmsKeyId string
    The identifier of the customer managed Vault KMS symmetric encryption key (null if Oracle managed).
    Algorithm string
    The encryption algorithm for the stream packaging configuration.
    KmsKeyId string
    The identifier of the customer managed Vault KMS symmetric encryption key (null if Oracle managed).
    algorithm String
    The encryption algorithm for the stream packaging configuration.
    kmsKeyId String
    The identifier of the customer managed Vault KMS symmetric encryption key (null if Oracle managed).
    algorithm string
    The encryption algorithm for the stream packaging configuration.
    kmsKeyId string
    The identifier of the customer managed Vault KMS symmetric encryption key (null if Oracle managed).
    algorithm str
    The encryption algorithm for the stream packaging configuration.
    kms_key_id str
    The identifier of the customer managed Vault KMS symmetric encryption key (null if Oracle managed).
    algorithm String
    The encryption algorithm for the stream packaging configuration.
    kmsKeyId String
    The identifier of the customer managed Vault KMS symmetric encryption key (null if Oracle managed).

    StreamPackagingConfigLock, StreamPackagingConfigLockArgs

    CompartmentId string
    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
    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
    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
    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
    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
    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.

    Import

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

    $ pulumi import oci:MediaServices/streamPackagingConfig:StreamPackagingConfig test_stream_packaging_config "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 v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi