1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Marketplace
  5. AcceptedAgreement
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

oci.Marketplace.AcceptedAgreement

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

    This resource provides the Accepted Agreement resource in Oracle Cloud Infrastructure Marketplace service.

    Accepts a terms of use agreement for a specific package version of a listing. You must accept all terms of use for a package before you can deploy the package.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAcceptedAgreement = new oci.marketplace.AcceptedAgreement("testAcceptedAgreement", {
        agreementId: oci_marketplace_agreement.test_agreement.id,
        compartmentId: _var.compartment_id,
        listingId: oci_marketplace_listing.test_listing.id,
        packageVersion: _var.accepted_agreement_package_version,
        signature: _var.accepted_agreement_signature,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        displayName: _var.accepted_agreement_display_name,
        freeformTags: {
            Department: "Finance",
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_accepted_agreement = oci.marketplace.AcceptedAgreement("testAcceptedAgreement",
        agreement_id=oci_marketplace_agreement["test_agreement"]["id"],
        compartment_id=var["compartment_id"],
        listing_id=oci_marketplace_listing["test_listing"]["id"],
        package_version=var["accepted_agreement_package_version"],
        signature=var["accepted_agreement_signature"],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        display_name=var["accepted_agreement_display_name"],
        freeform_tags={
            "Department": "Finance",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Marketplace"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Marketplace.NewAcceptedAgreement(ctx, "testAcceptedAgreement", &Marketplace.AcceptedAgreementArgs{
    			AgreementId:    pulumi.Any(oci_marketplace_agreement.Test_agreement.Id),
    			CompartmentId:  pulumi.Any(_var.Compartment_id),
    			ListingId:      pulumi.Any(oci_marketplace_listing.Test_listing.Id),
    			PackageVersion: pulumi.Any(_var.Accepted_agreement_package_version),
    			Signature:      pulumi.Any(_var.Accepted_agreement_signature),
    			DefinedTags: pulumi.Map{
    				"Operations.CostCenter": pulumi.Any("42"),
    			},
    			DisplayName: pulumi.Any(_var.Accepted_agreement_display_name),
    			FreeformTags: pulumi.Map{
    				"Department": pulumi.Any("Finance"),
    			},
    		})
    		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 testAcceptedAgreement = new Oci.Marketplace.AcceptedAgreement("testAcceptedAgreement", new()
        {
            AgreementId = oci_marketplace_agreement.Test_agreement.Id,
            CompartmentId = @var.Compartment_id,
            ListingId = oci_marketplace_listing.Test_listing.Id,
            PackageVersion = @var.Accepted_agreement_package_version,
            Signature = @var.Accepted_agreement_signature,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            DisplayName = @var.Accepted_agreement_display_name,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Marketplace.AcceptedAgreement;
    import com.pulumi.oci.Marketplace.AcceptedAgreementArgs;
    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 testAcceptedAgreement = new AcceptedAgreement("testAcceptedAgreement", AcceptedAgreementArgs.builder()        
                .agreementId(oci_marketplace_agreement.test_agreement().id())
                .compartmentId(var_.compartment_id())
                .listingId(oci_marketplace_listing.test_listing().id())
                .packageVersion(var_.accepted_agreement_package_version())
                .signature(var_.accepted_agreement_signature())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .displayName(var_.accepted_agreement_display_name())
                .freeformTags(Map.of("Department", "Finance"))
                .build());
    
        }
    }
    
    resources:
      testAcceptedAgreement:
        type: oci:Marketplace:AcceptedAgreement
        properties:
          #Required
          agreementId: ${oci_marketplace_agreement.test_agreement.id}
          compartmentId: ${var.compartment_id}
          listingId: ${oci_marketplace_listing.test_listing.id}
          packageVersion: ${var.accepted_agreement_package_version}
          signature: ${var.accepted_agreement_signature}
          #Optional
          definedTags:
            Operations.CostCenter: '42'
          displayName: ${var.accepted_agreement_display_name}
          freeformTags:
            Department: Finance
    

    Create AcceptedAgreement Resource

    new AcceptedAgreement(name: string, args: AcceptedAgreementArgs, opts?: CustomResourceOptions);
    @overload
    def AcceptedAgreement(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          agreement_id: Optional[str] = None,
                          compartment_id: Optional[str] = None,
                          defined_tags: Optional[Mapping[str, Any]] = None,
                          display_name: Optional[str] = None,
                          freeform_tags: Optional[Mapping[str, Any]] = None,
                          listing_id: Optional[str] = None,
                          package_version: Optional[str] = None,
                          signature: Optional[str] = None)
    @overload
    def AcceptedAgreement(resource_name: str,
                          args: AcceptedAgreementArgs,
                          opts: Optional[ResourceOptions] = None)
    func NewAcceptedAgreement(ctx *Context, name string, args AcceptedAgreementArgs, opts ...ResourceOption) (*AcceptedAgreement, error)
    public AcceptedAgreement(string name, AcceptedAgreementArgs args, CustomResourceOptions? opts = null)
    public AcceptedAgreement(String name, AcceptedAgreementArgs args)
    public AcceptedAgreement(String name, AcceptedAgreementArgs args, CustomResourceOptions options)
    
    type: oci:Marketplace:AcceptedAgreement
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args AcceptedAgreementArgs
    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 AcceptedAgreementArgs
    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 AcceptedAgreementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AcceptedAgreementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AcceptedAgreementArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    AgreementId string
    The agreement to accept.
    CompartmentId string
    The unique identifier for the compartment where the agreement will be accepted.
    ListingId string
    The unique identifier for the listing associated with the agreement.
    PackageVersion string
    The package version associated with the agreement.
    Signature string

    A signature generated for the listing package agreements that you can retrieve with GetAgreement.

    ** 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) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) A display name for the accepted agreement.
    FreeformTags Dictionary<string, object>
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    AgreementId string
    The agreement to accept.
    CompartmentId string
    The unique identifier for the compartment where the agreement will be accepted.
    ListingId string
    The unique identifier for the listing associated with the agreement.
    PackageVersion string
    The package version associated with the agreement.
    Signature string

    A signature generated for the listing package agreements that you can retrieve with GetAgreement.

    ** 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) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) A display name for the accepted agreement.
    FreeformTags map[string]interface{}
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    agreementId String
    The agreement to accept.
    compartmentId String
    The unique identifier for the compartment where the agreement will be accepted.
    listingId String
    The unique identifier for the listing associated with the agreement.
    packageVersion String
    The package version associated with the agreement.
    signature String

    A signature generated for the listing package agreements that you can retrieve with GetAgreement.

    ** 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) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) A display name for the accepted agreement.
    freeformTags Map<String,Object>
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    agreementId string
    The agreement to accept.
    compartmentId string
    The unique identifier for the compartment where the agreement will be accepted.
    listingId string
    The unique identifier for the listing associated with the agreement.
    packageVersion string
    The package version associated with the agreement.
    signature string

    A signature generated for the listing package agreements that you can retrieve with GetAgreement.

    ** 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) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    (Updatable) A display name for the accepted agreement.
    freeformTags {[key: string]: any}
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    agreement_id str
    The agreement to accept.
    compartment_id str
    The unique identifier for the compartment where the agreement will be accepted.
    listing_id str
    The unique identifier for the listing associated with the agreement.
    package_version str
    The package version associated with the agreement.
    signature str

    A signature generated for the listing package agreements that you can retrieve with GetAgreement.

    ** 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) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    (Updatable) A display name for the accepted agreement.
    freeform_tags Mapping[str, Any]
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    agreementId String
    The agreement to accept.
    compartmentId String
    The unique identifier for the compartment where the agreement will be accepted.
    listingId String
    The unique identifier for the listing associated with the agreement.
    packageVersion String
    The package version associated with the agreement.
    signature String

    A signature generated for the listing package agreements that you can retrieve with GetAgreement.

    ** 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) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) A display name for the accepted agreement.
    freeformTags Map<Any>
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    TimeAccepted string
    The time the agreement was accepted.
    Id string
    The provider-assigned unique ID for this managed resource.
    TimeAccepted string
    The time the agreement was accepted.
    id String
    The provider-assigned unique ID for this managed resource.
    timeAccepted String
    The time the agreement was accepted.
    id string
    The provider-assigned unique ID for this managed resource.
    timeAccepted string
    The time the agreement was accepted.
    id str
    The provider-assigned unique ID for this managed resource.
    time_accepted str
    The time the agreement was accepted.
    id String
    The provider-assigned unique ID for this managed resource.
    timeAccepted String
    The time the agreement was accepted.

    Look up Existing AcceptedAgreement Resource

    Get an existing AcceptedAgreement 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?: AcceptedAgreementState, opts?: CustomResourceOptions): AcceptedAgreement
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            agreement_id: Optional[str] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            listing_id: Optional[str] = None,
            package_version: Optional[str] = None,
            signature: Optional[str] = None,
            time_accepted: Optional[str] = None) -> AcceptedAgreement
    func GetAcceptedAgreement(ctx *Context, name string, id IDInput, state *AcceptedAgreementState, opts ...ResourceOption) (*AcceptedAgreement, error)
    public static AcceptedAgreement Get(string name, Input<string> id, AcceptedAgreementState? state, CustomResourceOptions? opts = null)
    public static AcceptedAgreement get(String name, Output<String> id, AcceptedAgreementState 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:
    AgreementId string
    The agreement to accept.
    CompartmentId string
    The unique identifier for the compartment where the agreement will be accepted.
    DefinedTags Dictionary<string, object>
    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) A display name for the accepted agreement.
    FreeformTags Dictionary<string, object>
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    ListingId string
    The unique identifier for the listing associated with the agreement.
    PackageVersion string
    The package version associated with the agreement.
    Signature string

    A signature generated for the listing package agreements that you can retrieve with GetAgreement.

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

    TimeAccepted string
    The time the agreement was accepted.
    AgreementId string
    The agreement to accept.
    CompartmentId string
    The unique identifier for the compartment where the agreement will be accepted.
    DefinedTags map[string]interface{}
    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) A display name for the accepted agreement.
    FreeformTags map[string]interface{}
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    ListingId string
    The unique identifier for the listing associated with the agreement.
    PackageVersion string
    The package version associated with the agreement.
    Signature string

    A signature generated for the listing package agreements that you can retrieve with GetAgreement.

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

    TimeAccepted string
    The time the agreement was accepted.
    agreementId String
    The agreement to accept.
    compartmentId String
    The unique identifier for the compartment where the agreement will be accepted.
    definedTags Map<String,Object>
    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) A display name for the accepted agreement.
    freeformTags Map<String,Object>
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    listingId String
    The unique identifier for the listing associated with the agreement.
    packageVersion String
    The package version associated with the agreement.
    signature String

    A signature generated for the listing package agreements that you can retrieve with GetAgreement.

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

    timeAccepted String
    The time the agreement was accepted.
    agreementId string
    The agreement to accept.
    compartmentId string
    The unique identifier for the compartment where the agreement will be accepted.
    definedTags {[key: string]: any}
    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    (Updatable) A display name for the accepted agreement.
    freeformTags {[key: string]: any}
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    listingId string
    The unique identifier for the listing associated with the agreement.
    packageVersion string
    The package version associated with the agreement.
    signature string

    A signature generated for the listing package agreements that you can retrieve with GetAgreement.

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

    timeAccepted string
    The time the agreement was accepted.
    agreement_id str
    The agreement to accept.
    compartment_id str
    The unique identifier for the compartment where the agreement will be accepted.
    defined_tags Mapping[str, Any]
    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    (Updatable) A display name for the accepted agreement.
    freeform_tags Mapping[str, Any]
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    listing_id str
    The unique identifier for the listing associated with the agreement.
    package_version str
    The package version associated with the agreement.
    signature str

    A signature generated for the listing package agreements that you can retrieve with GetAgreement.

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

    time_accepted str
    The time the agreement was accepted.
    agreementId String
    The agreement to accept.
    compartmentId String
    The unique identifier for the compartment where the agreement will be accepted.
    definedTags Map<Any>
    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) A display name for the accepted agreement.
    freeformTags Map<Any>
    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    listingId String
    The unique identifier for the listing associated with the agreement.
    packageVersion String
    The package version associated with the agreement.
    signature String

    A signature generated for the listing package agreements that you can retrieve with GetAgreement.

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

    timeAccepted String
    The time the agreement was accepted.

    Import

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

    $ pulumi import oci:Marketplace/acceptedAgreement:AcceptedAgreement test_accepted_agreement "id"
    

    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.29.0 published on Thursday, Mar 28, 2024 by Pulumi