1. Packages
  2. Packages
  3. Thoth
  4. API Docs
  5. governance
  6. PolicyChangeArtifactApply
Viewing docs for Thoth v0.1.15
published on Thursday, Jul 23, 2026 by Aten Security
thoth logo
Viewing docs for Thoth v0.1.15
published on Thursday, Jul 23, 2026 by Aten Security

    Create PolicyChangeArtifactApply Resource

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

    Constructor syntax

    new PolicyChangeArtifactApply(name: string, args: PolicyChangeArtifactApplyArgs, opts?: CustomResourceOptions);
    @overload
    def PolicyChangeArtifactApply(resource_name: str,
                                  args: PolicyChangeArtifactApplyArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def PolicyChangeArtifactApply(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  applied_by: Optional[str] = None,
                                  request_id: Optional[str] = None,
                                  apply_channel: Optional[str] = None,
                                  assignments: Optional[Sequence[str]] = None,
                                  bundle_description: Optional[str] = None,
                                  bundle_name: Optional[str] = None,
                                  enforcement_mode: Optional[str] = None,
                                  policy_format: Optional[str] = None,
                                  status: Optional[str] = None)
    func NewPolicyChangeArtifactApply(ctx *Context, name string, args PolicyChangeArtifactApplyArgs, opts ...ResourceOption) (*PolicyChangeArtifactApply, error)
    public PolicyChangeArtifactApply(string name, PolicyChangeArtifactApplyArgs args, CustomResourceOptions? opts = null)
    public PolicyChangeArtifactApply(String name, PolicyChangeArtifactApplyArgs args)
    public PolicyChangeArtifactApply(String name, PolicyChangeArtifactApplyArgs args, CustomResourceOptions options)
    
    type: thoth:governance:PolicyChangeArtifactApply
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "thoth_governance_policy_change_artifact_apply" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args PolicyChangeArtifactApplyArgs
    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 PolicyChangeArtifactApplyArgs
    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 PolicyChangeArtifactApplyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PolicyChangeArtifactApplyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PolicyChangeArtifactApplyArgs
    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 policyChangeArtifactApplyResource = new Thoth.Governance.PolicyChangeArtifactApply("policyChangeArtifactApplyResource", new()
    {
        AppliedBy = "string",
        RequestId = "string",
        ApplyChannel = "string",
        Assignments = new[]
        {
            "string",
        },
        BundleDescription = "string",
        BundleName = "string",
        EnforcementMode = "string",
        PolicyFormat = "string",
        Status = "string",
    });
    
    example, err := governance.NewPolicyChangeArtifactApply(ctx, "policyChangeArtifactApplyResource", &governance.PolicyChangeArtifactApplyArgs{
    	AppliedBy:    pulumi.String("string"),
    	RequestId:    pulumi.String("string"),
    	ApplyChannel: pulumi.String("string"),
    	Assignments: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	BundleDescription: pulumi.String("string"),
    	BundleName:        pulumi.String("string"),
    	EnforcementMode:   pulumi.String("string"),
    	PolicyFormat:      pulumi.String("string"),
    	Status:            pulumi.String("string"),
    })
    
    resource "thoth_governance_policy_change_artifact_apply" "policyChangeArtifactApplyResource" {
      lifecycle {
        create_before_destroy = true
      }
      applied_by         = "string"
      request_id         = "string"
      apply_channel      = "string"
      assignments        = ["string"]
      bundle_description = "string"
      bundle_name        = "string"
      enforcement_mode   = "string"
      policy_format      = "string"
      status             = "string"
    }
    
    var policyChangeArtifactApplyResource = new PolicyChangeArtifactApply("policyChangeArtifactApplyResource", PolicyChangeArtifactApplyArgs.builder()
        .appliedBy("string")
        .requestId("string")
        .applyChannel("string")
        .assignments("string")
        .bundleDescription("string")
        .bundleName("string")
        .enforcementMode("string")
        .policyFormat("string")
        .status("string")
        .build());
    
    policy_change_artifact_apply_resource = thoth.governance.PolicyChangeArtifactApply("policyChangeArtifactApplyResource",
        applied_by="string",
        request_id="string",
        apply_channel="string",
        assignments=["string"],
        bundle_description="string",
        bundle_name="string",
        enforcement_mode="string",
        policy_format="string",
        status="string")
    
    const policyChangeArtifactApplyResource = new thoth.governance.PolicyChangeArtifactApply("policyChangeArtifactApplyResource", {
        appliedBy: "string",
        requestId: "string",
        applyChannel: "string",
        assignments: ["string"],
        bundleDescription: "string",
        bundleName: "string",
        enforcementMode: "string",
        policyFormat: "string",
        status: "string",
    });
    
    type: thoth:governance:PolicyChangeArtifactApply
    properties:
        appliedBy: string
        applyChannel: string
        assignments:
            - string
        bundleDescription: string
        bundleName: string
        enforcementMode: string
        policyFormat: string
        requestId: string
        status: string
    

    PolicyChangeArtifactApply Resource Properties

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

    Inputs

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

    The PolicyChangeArtifactApply resource accepts the following input properties:

    AppliedBy string
    Actor applying the artifact.
    RequestId string
    Policy exception request ID.
    ApplyChannel string
    Apply channel to use. Defaults to govapi.
    Assignments List<string>
    Optional assignment targets for govapi policy bundle apply.
    BundleDescription string
    Optional bundle description for govapi apply.
    BundleName string
    Optional override bundle name for govapi apply.
    EnforcementMode string
    Optional enforcement mode override (enforce or observe).
    PolicyFormat string
    Preferred policy format for apply payload (cedar, rego, yaml).
    Status string
    Optional policy bundle status override (active, staged, paused, disabled).
    AppliedBy string
    Actor applying the artifact.
    RequestId string
    Policy exception request ID.
    ApplyChannel string
    Apply channel to use. Defaults to govapi.
    Assignments []string
    Optional assignment targets for govapi policy bundle apply.
    BundleDescription string
    Optional bundle description for govapi apply.
    BundleName string
    Optional override bundle name for govapi apply.
    EnforcementMode string
    Optional enforcement mode override (enforce or observe).
    PolicyFormat string
    Preferred policy format for apply payload (cedar, rego, yaml).
    Status string
    Optional policy bundle status override (active, staged, paused, disabled).
    applied_by string
    Actor applying the artifact.
    request_id string
    Policy exception request ID.
    apply_channel string
    Apply channel to use. Defaults to govapi.
    assignments list(string)
    Optional assignment targets for govapi policy bundle apply.
    bundle_description string
    Optional bundle description for govapi apply.
    bundle_name string
    Optional override bundle name for govapi apply.
    enforcement_mode string
    Optional enforcement mode override (enforce or observe).
    policy_format string
    Preferred policy format for apply payload (cedar, rego, yaml).
    status string
    Optional policy bundle status override (active, staged, paused, disabled).
    appliedBy String
    Actor applying the artifact.
    requestId String
    Policy exception request ID.
    applyChannel String
    Apply channel to use. Defaults to govapi.
    assignments List<String>
    Optional assignment targets for govapi policy bundle apply.
    bundleDescription String
    Optional bundle description for govapi apply.
    bundleName String
    Optional override bundle name for govapi apply.
    enforcementMode String
    Optional enforcement mode override (enforce or observe).
    policyFormat String
    Preferred policy format for apply payload (cedar, rego, yaml).
    status String
    Optional policy bundle status override (active, staged, paused, disabled).
    appliedBy string
    Actor applying the artifact.
    requestId string
    Policy exception request ID.
    applyChannel string
    Apply channel to use. Defaults to govapi.
    assignments string[]
    Optional assignment targets for govapi policy bundle apply.
    bundleDescription string
    Optional bundle description for govapi apply.
    bundleName string
    Optional override bundle name for govapi apply.
    enforcementMode string
    Optional enforcement mode override (enforce or observe).
    policyFormat string
    Preferred policy format for apply payload (cedar, rego, yaml).
    status string
    Optional policy bundle status override (active, staged, paused, disabled).
    applied_by str
    Actor applying the artifact.
    request_id str
    Policy exception request ID.
    apply_channel str
    Apply channel to use. Defaults to govapi.
    assignments Sequence[str]
    Optional assignment targets for govapi policy bundle apply.
    bundle_description str
    Optional bundle description for govapi apply.
    bundle_name str
    Optional override bundle name for govapi apply.
    enforcement_mode str
    Optional enforcement mode override (enforce or observe).
    policy_format str
    Preferred policy format for apply payload (cedar, rego, yaml).
    status str
    Optional policy bundle status override (active, staged, paused, disabled).
    appliedBy String
    Actor applying the artifact.
    requestId String
    Policy exception request ID.
    applyChannel String
    Apply channel to use. Defaults to govapi.
    assignments List<String>
    Optional assignment targets for govapi policy bundle apply.
    bundleDescription String
    Optional bundle description for govapi apply.
    bundleName String
    Optional override bundle name for govapi apply.
    enforcementMode String
    Optional enforcement mode override (enforce or observe).
    policyFormat String
    Preferred policy format for apply payload (cedar, rego, yaml).
    status String
    Optional policy bundle status override (active, staged, paused, disabled).

    Outputs

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

    AppliedAt string
    Apply execution timestamp.
    ArtifactId string
    Artifact ID used for apply.
    GovapiResourceJson string
    GovAPI resource returned by apply operation as JSON.
    Id string
    The provider-assigned unique ID for this managed resource.
    OverrideRevoked bool
    Whether a temporary runtime override was revoked after apply.
    ResponseJson string
    Full apply response as JSON.
    TargetEnvironment string
    Target environment for the apply operation.
    TenantId string
    Tenant ID from provider configuration.
    AppliedAt string
    Apply execution timestamp.
    ArtifactId string
    Artifact ID used for apply.
    GovapiResourceJson string
    GovAPI resource returned by apply operation as JSON.
    Id string
    The provider-assigned unique ID for this managed resource.
    OverrideRevoked bool
    Whether a temporary runtime override was revoked after apply.
    ResponseJson string
    Full apply response as JSON.
    TargetEnvironment string
    Target environment for the apply operation.
    TenantId string
    Tenant ID from provider configuration.
    applied_at string
    Apply execution timestamp.
    artifact_id string
    Artifact ID used for apply.
    govapi_resource_json string
    GovAPI resource returned by apply operation as JSON.
    id string
    The provider-assigned unique ID for this managed resource.
    override_revoked bool
    Whether a temporary runtime override was revoked after apply.
    response_json string
    Full apply response as JSON.
    target_environment string
    Target environment for the apply operation.
    tenant_id string
    Tenant ID from provider configuration.
    appliedAt String
    Apply execution timestamp.
    artifactId String
    Artifact ID used for apply.
    govapiResourceJson String
    GovAPI resource returned by apply operation as JSON.
    id String
    The provider-assigned unique ID for this managed resource.
    overrideRevoked Boolean
    Whether a temporary runtime override was revoked after apply.
    responseJson String
    Full apply response as JSON.
    targetEnvironment String
    Target environment for the apply operation.
    tenantId String
    Tenant ID from provider configuration.
    appliedAt string
    Apply execution timestamp.
    artifactId string
    Artifact ID used for apply.
    govapiResourceJson string
    GovAPI resource returned by apply operation as JSON.
    id string
    The provider-assigned unique ID for this managed resource.
    overrideRevoked boolean
    Whether a temporary runtime override was revoked after apply.
    responseJson string
    Full apply response as JSON.
    targetEnvironment string
    Target environment for the apply operation.
    tenantId string
    Tenant ID from provider configuration.
    applied_at str
    Apply execution timestamp.
    artifact_id str
    Artifact ID used for apply.
    govapi_resource_json str
    GovAPI resource returned by apply operation as JSON.
    id str
    The provider-assigned unique ID for this managed resource.
    override_revoked bool
    Whether a temporary runtime override was revoked after apply.
    response_json str
    Full apply response as JSON.
    target_environment str
    Target environment for the apply operation.
    tenant_id str
    Tenant ID from provider configuration.
    appliedAt String
    Apply execution timestamp.
    artifactId String
    Artifact ID used for apply.
    govapiResourceJson String
    GovAPI resource returned by apply operation as JSON.
    id String
    The provider-assigned unique ID for this managed resource.
    overrideRevoked Boolean
    Whether a temporary runtime override was revoked after apply.
    responseJson String
    Full apply response as JSON.
    targetEnvironment String
    Target environment for the apply operation.
    tenantId String
    Tenant ID from provider configuration.

    Look up Existing PolicyChangeArtifactApply Resource

    Get an existing PolicyChangeArtifactApply 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?: PolicyChangeArtifactApplyState, opts?: CustomResourceOptions): PolicyChangeArtifactApply
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            applied_at: Optional[str] = None,
            applied_by: Optional[str] = None,
            apply_channel: Optional[str] = None,
            artifact_id: Optional[str] = None,
            assignments: Optional[Sequence[str]] = None,
            bundle_description: Optional[str] = None,
            bundle_name: Optional[str] = None,
            enforcement_mode: Optional[str] = None,
            govapi_resource_json: Optional[str] = None,
            override_revoked: Optional[bool] = None,
            policy_format: Optional[str] = None,
            request_id: Optional[str] = None,
            response_json: Optional[str] = None,
            status: Optional[str] = None,
            target_environment: Optional[str] = None,
            tenant_id: Optional[str] = None) -> PolicyChangeArtifactApply
    func GetPolicyChangeArtifactApply(ctx *Context, name string, id IDInput, state *PolicyChangeArtifactApplyState, opts ...ResourceOption) (*PolicyChangeArtifactApply, error)
    public static PolicyChangeArtifactApply Get(string name, Input<string> id, PolicyChangeArtifactApplyState? state, CustomResourceOptions? opts = null)
    public static PolicyChangeArtifactApply get(String name, Output<String> id, PolicyChangeArtifactApplyState state, CustomResourceOptions options)
    resources:  _:    type: thoth:governance:PolicyChangeArtifactApply    get:      id: ${id}
    import {
      to = thoth_governance_policy_change_artifact_apply.example
      id = "${id}"
    }
    
    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:
    AppliedAt string
    Apply execution timestamp.
    AppliedBy string
    Actor applying the artifact.
    ApplyChannel string
    Apply channel to use. Defaults to govapi.
    ArtifactId string
    Artifact ID used for apply.
    Assignments List<string>
    Optional assignment targets for govapi policy bundle apply.
    BundleDescription string
    Optional bundle description for govapi apply.
    BundleName string
    Optional override bundle name for govapi apply.
    EnforcementMode string
    Optional enforcement mode override (enforce or observe).
    GovapiResourceJson string
    GovAPI resource returned by apply operation as JSON.
    OverrideRevoked bool
    Whether a temporary runtime override was revoked after apply.
    PolicyFormat string
    Preferred policy format for apply payload (cedar, rego, yaml).
    RequestId string
    Policy exception request ID.
    ResponseJson string
    Full apply response as JSON.
    Status string
    Optional policy bundle status override (active, staged, paused, disabled).
    TargetEnvironment string
    Target environment for the apply operation.
    TenantId string
    Tenant ID from provider configuration.
    AppliedAt string
    Apply execution timestamp.
    AppliedBy string
    Actor applying the artifact.
    ApplyChannel string
    Apply channel to use. Defaults to govapi.
    ArtifactId string
    Artifact ID used for apply.
    Assignments []string
    Optional assignment targets for govapi policy bundle apply.
    BundleDescription string
    Optional bundle description for govapi apply.
    BundleName string
    Optional override bundle name for govapi apply.
    EnforcementMode string
    Optional enforcement mode override (enforce or observe).
    GovapiResourceJson string
    GovAPI resource returned by apply operation as JSON.
    OverrideRevoked bool
    Whether a temporary runtime override was revoked after apply.
    PolicyFormat string
    Preferred policy format for apply payload (cedar, rego, yaml).
    RequestId string
    Policy exception request ID.
    ResponseJson string
    Full apply response as JSON.
    Status string
    Optional policy bundle status override (active, staged, paused, disabled).
    TargetEnvironment string
    Target environment for the apply operation.
    TenantId string
    Tenant ID from provider configuration.
    applied_at string
    Apply execution timestamp.
    applied_by string
    Actor applying the artifact.
    apply_channel string
    Apply channel to use. Defaults to govapi.
    artifact_id string
    Artifact ID used for apply.
    assignments list(string)
    Optional assignment targets for govapi policy bundle apply.
    bundle_description string
    Optional bundle description for govapi apply.
    bundle_name string
    Optional override bundle name for govapi apply.
    enforcement_mode string
    Optional enforcement mode override (enforce or observe).
    govapi_resource_json string
    GovAPI resource returned by apply operation as JSON.
    override_revoked bool
    Whether a temporary runtime override was revoked after apply.
    policy_format string
    Preferred policy format for apply payload (cedar, rego, yaml).
    request_id string
    Policy exception request ID.
    response_json string
    Full apply response as JSON.
    status string
    Optional policy bundle status override (active, staged, paused, disabled).
    target_environment string
    Target environment for the apply operation.
    tenant_id string
    Tenant ID from provider configuration.
    appliedAt String
    Apply execution timestamp.
    appliedBy String
    Actor applying the artifact.
    applyChannel String
    Apply channel to use. Defaults to govapi.
    artifactId String
    Artifact ID used for apply.
    assignments List<String>
    Optional assignment targets for govapi policy bundle apply.
    bundleDescription String
    Optional bundle description for govapi apply.
    bundleName String
    Optional override bundle name for govapi apply.
    enforcementMode String
    Optional enforcement mode override (enforce or observe).
    govapiResourceJson String
    GovAPI resource returned by apply operation as JSON.
    overrideRevoked Boolean
    Whether a temporary runtime override was revoked after apply.
    policyFormat String
    Preferred policy format for apply payload (cedar, rego, yaml).
    requestId String
    Policy exception request ID.
    responseJson String
    Full apply response as JSON.
    status String
    Optional policy bundle status override (active, staged, paused, disabled).
    targetEnvironment String
    Target environment for the apply operation.
    tenantId String
    Tenant ID from provider configuration.
    appliedAt string
    Apply execution timestamp.
    appliedBy string
    Actor applying the artifact.
    applyChannel string
    Apply channel to use. Defaults to govapi.
    artifactId string
    Artifact ID used for apply.
    assignments string[]
    Optional assignment targets for govapi policy bundle apply.
    bundleDescription string
    Optional bundle description for govapi apply.
    bundleName string
    Optional override bundle name for govapi apply.
    enforcementMode string
    Optional enforcement mode override (enforce or observe).
    govapiResourceJson string
    GovAPI resource returned by apply operation as JSON.
    overrideRevoked boolean
    Whether a temporary runtime override was revoked after apply.
    policyFormat string
    Preferred policy format for apply payload (cedar, rego, yaml).
    requestId string
    Policy exception request ID.
    responseJson string
    Full apply response as JSON.
    status string
    Optional policy bundle status override (active, staged, paused, disabled).
    targetEnvironment string
    Target environment for the apply operation.
    tenantId string
    Tenant ID from provider configuration.
    applied_at str
    Apply execution timestamp.
    applied_by str
    Actor applying the artifact.
    apply_channel str
    Apply channel to use. Defaults to govapi.
    artifact_id str
    Artifact ID used for apply.
    assignments Sequence[str]
    Optional assignment targets for govapi policy bundle apply.
    bundle_description str
    Optional bundle description for govapi apply.
    bundle_name str
    Optional override bundle name for govapi apply.
    enforcement_mode str
    Optional enforcement mode override (enforce or observe).
    govapi_resource_json str
    GovAPI resource returned by apply operation as JSON.
    override_revoked bool
    Whether a temporary runtime override was revoked after apply.
    policy_format str
    Preferred policy format for apply payload (cedar, rego, yaml).
    request_id str
    Policy exception request ID.
    response_json str
    Full apply response as JSON.
    status str
    Optional policy bundle status override (active, staged, paused, disabled).
    target_environment str
    Target environment for the apply operation.
    tenant_id str
    Tenant ID from provider configuration.
    appliedAt String
    Apply execution timestamp.
    appliedBy String
    Actor applying the artifact.
    applyChannel String
    Apply channel to use. Defaults to govapi.
    artifactId String
    Artifact ID used for apply.
    assignments List<String>
    Optional assignment targets for govapi policy bundle apply.
    bundleDescription String
    Optional bundle description for govapi apply.
    bundleName String
    Optional override bundle name for govapi apply.
    enforcementMode String
    Optional enforcement mode override (enforce or observe).
    govapiResourceJson String
    GovAPI resource returned by apply operation as JSON.
    overrideRevoked Boolean
    Whether a temporary runtime override was revoked after apply.
    policyFormat String
    Preferred policy format for apply payload (cedar, rego, yaml).
    requestId String
    Policy exception request ID.
    responseJson String
    Full apply response as JSON.
    status String
    Optional policy bundle status override (active, staged, paused, disabled).
    targetEnvironment String
    Target environment for the apply operation.
    tenantId String
    Tenant ID from provider configuration.

    Package Details

    Repository
    thoth atensecurity/pulumi-thoth
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the thoth Terraform Provider.
    thoth logo
    Viewing docs for Thoth v0.1.15
    published on Thursday, Jul 23, 2026 by Aten Security

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial