1. Packages
  2. Artifactory Provider
  3. API Docs
  4. ReleaseBundleV2Promotion
artifactory v8.1.0 published on Saturday, Sep 28, 2024 by Pulumi

artifactory.ReleaseBundleV2Promotion

Explore with Pulumi AI

artifactory logo
artifactory v8.1.0 published on Saturday, Sep 28, 2024 by Pulumi

    This resource enables you to promote Release Bundle V2 version. For more information, see JFrog documentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as artifactory from "@pulumi/artifactory";
    
    const my_release_bundle_v2_promotion = new artifactory.ReleaseBundleV2Promotion("my-release-bundle-v2-promotion", {
        name: "my-release-bundle-v2-artifacts",
        version: "1.0.0",
        keypairName: "my-keypair-name",
        environment: "DEV",
        includedRepositoryKeys: ["commons-qa-maven-local"],
    });
    
    import pulumi
    import pulumi_artifactory as artifactory
    
    my_release_bundle_v2_promotion = artifactory.ReleaseBundleV2Promotion("my-release-bundle-v2-promotion",
        name="my-release-bundle-v2-artifacts",
        version="1.0.0",
        keypair_name="my-keypair-name",
        environment="DEV",
        included_repository_keys=["commons-qa-maven-local"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-artifactory/sdk/v8/go/artifactory"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := artifactory.NewReleaseBundleV2Promotion(ctx, "my-release-bundle-v2-promotion", &artifactory.ReleaseBundleV2PromotionArgs{
    			Name:        pulumi.String("my-release-bundle-v2-artifacts"),
    			Version:     pulumi.String("1.0.0"),
    			KeypairName: pulumi.String("my-keypair-name"),
    			Environment: pulumi.String("DEV"),
    			IncludedRepositoryKeys: pulumi.StringArray{
    				pulumi.String("commons-qa-maven-local"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Artifactory = Pulumi.Artifactory;
    
    return await Deployment.RunAsync(() => 
    {
        var my_release_bundle_v2_promotion = new Artifactory.ReleaseBundleV2Promotion("my-release-bundle-v2-promotion", new()
        {
            Name = "my-release-bundle-v2-artifacts",
            Version = "1.0.0",
            KeypairName = "my-keypair-name",
            Environment = "DEV",
            IncludedRepositoryKeys = new[]
            {
                "commons-qa-maven-local",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.artifactory.ReleaseBundleV2Promotion;
    import com.pulumi.artifactory.ReleaseBundleV2PromotionArgs;
    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 my_release_bundle_v2_promotion = new ReleaseBundleV2Promotion("my-release-bundle-v2-promotion", ReleaseBundleV2PromotionArgs.builder()
                .name("my-release-bundle-v2-artifacts")
                .version("1.0.0")
                .keypairName("my-keypair-name")
                .environment("DEV")
                .includedRepositoryKeys("commons-qa-maven-local")
                .build());
    
        }
    }
    
    resources:
      my-release-bundle-v2-promotion:
        type: artifactory:ReleaseBundleV2Promotion
        properties:
          name: my-release-bundle-v2-artifacts
          version: 1.0.0
          keypairName: my-keypair-name
          environment: DEV
          includedRepositoryKeys:
            - commons-qa-maven-local
    

    Create ReleaseBundleV2Promotion Resource

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

    Constructor syntax

    new ReleaseBundleV2Promotion(name: string, args: ReleaseBundleV2PromotionArgs, opts?: CustomResourceOptions);
    @overload
    def ReleaseBundleV2Promotion(resource_name: str,
                                 args: ReleaseBundleV2PromotionArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def ReleaseBundleV2Promotion(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 environment: Optional[str] = None,
                                 keypair_name: Optional[str] = None,
                                 version: Optional[str] = None,
                                 excluded_repository_keys: Optional[Sequence[str]] = None,
                                 included_repository_keys: Optional[Sequence[str]] = None,
                                 name: Optional[str] = None,
                                 project_key: Optional[str] = None)
    func NewReleaseBundleV2Promotion(ctx *Context, name string, args ReleaseBundleV2PromotionArgs, opts ...ResourceOption) (*ReleaseBundleV2Promotion, error)
    public ReleaseBundleV2Promotion(string name, ReleaseBundleV2PromotionArgs args, CustomResourceOptions? opts = null)
    public ReleaseBundleV2Promotion(String name, ReleaseBundleV2PromotionArgs args)
    public ReleaseBundleV2Promotion(String name, ReleaseBundleV2PromotionArgs args, CustomResourceOptions options)
    
    type: artifactory:ReleaseBundleV2Promotion
    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 ReleaseBundleV2PromotionArgs
    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 ReleaseBundleV2PromotionArgs
    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 ReleaseBundleV2PromotionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ReleaseBundleV2PromotionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ReleaseBundleV2PromotionArgs
    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 releaseBundleV2PromotionResource = new Artifactory.ReleaseBundleV2Promotion("releaseBundleV2PromotionResource", new()
    {
        Environment = "string",
        KeypairName = "string",
        Version = "string",
        ExcludedRepositoryKeys = new[]
        {
            "string",
        },
        IncludedRepositoryKeys = new[]
        {
            "string",
        },
        Name = "string",
        ProjectKey = "string",
    });
    
    example, err := artifactory.NewReleaseBundleV2Promotion(ctx, "releaseBundleV2PromotionResource", &artifactory.ReleaseBundleV2PromotionArgs{
    	Environment: pulumi.String("string"),
    	KeypairName: pulumi.String("string"),
    	Version:     pulumi.String("string"),
    	ExcludedRepositoryKeys: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	IncludedRepositoryKeys: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Name:       pulumi.String("string"),
    	ProjectKey: pulumi.String("string"),
    })
    
    var releaseBundleV2PromotionResource = new ReleaseBundleV2Promotion("releaseBundleV2PromotionResource", ReleaseBundleV2PromotionArgs.builder()
        .environment("string")
        .keypairName("string")
        .version("string")
        .excludedRepositoryKeys("string")
        .includedRepositoryKeys("string")
        .name("string")
        .projectKey("string")
        .build());
    
    release_bundle_v2_promotion_resource = artifactory.ReleaseBundleV2Promotion("releaseBundleV2PromotionResource",
        environment="string",
        keypair_name="string",
        version="string",
        excluded_repository_keys=["string"],
        included_repository_keys=["string"],
        name="string",
        project_key="string")
    
    const releaseBundleV2PromotionResource = new artifactory.ReleaseBundleV2Promotion("releaseBundleV2PromotionResource", {
        environment: "string",
        keypairName: "string",
        version: "string",
        excludedRepositoryKeys: ["string"],
        includedRepositoryKeys: ["string"],
        name: "string",
        projectKey: "string",
    });
    
    type: artifactory:ReleaseBundleV2Promotion
    properties:
        environment: string
        excludedRepositoryKeys:
            - string
        includedRepositoryKeys:
            - string
        keypairName: string
        name: string
        projectKey: string
        version: string
    

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

    Environment string
    Target environment
    KeypairName string
    Key-pair name to use for signature creation
    Version string
    Version to promote
    ExcludedRepositoryKeys List<string>
    Defines specific repositories to exclude from the promotion.
    IncludedRepositoryKeys List<string>
    Defines specific repositories to include in the promotion. If this property is left undefined, all repositories (except those specifically excluded) are included in the promotion. Important: If one or more repositories are specifically included, all other repositories are excluded (regardless of what is defined in excluded_repository_keys).
    Name string
    Name of Release Bundle
    ProjectKey string
    Project key the Release Bundle belongs to
    Environment string
    Target environment
    KeypairName string
    Key-pair name to use for signature creation
    Version string
    Version to promote
    ExcludedRepositoryKeys []string
    Defines specific repositories to exclude from the promotion.
    IncludedRepositoryKeys []string
    Defines specific repositories to include in the promotion. If this property is left undefined, all repositories (except those specifically excluded) are included in the promotion. Important: If one or more repositories are specifically included, all other repositories are excluded (regardless of what is defined in excluded_repository_keys).
    Name string
    Name of Release Bundle
    ProjectKey string
    Project key the Release Bundle belongs to
    environment String
    Target environment
    keypairName String
    Key-pair name to use for signature creation
    version String
    Version to promote
    excludedRepositoryKeys List<String>
    Defines specific repositories to exclude from the promotion.
    includedRepositoryKeys List<String>
    Defines specific repositories to include in the promotion. If this property is left undefined, all repositories (except those specifically excluded) are included in the promotion. Important: If one or more repositories are specifically included, all other repositories are excluded (regardless of what is defined in excluded_repository_keys).
    name String
    Name of Release Bundle
    projectKey String
    Project key the Release Bundle belongs to
    environment string
    Target environment
    keypairName string
    Key-pair name to use for signature creation
    version string
    Version to promote
    excludedRepositoryKeys string[]
    Defines specific repositories to exclude from the promotion.
    includedRepositoryKeys string[]
    Defines specific repositories to include in the promotion. If this property is left undefined, all repositories (except those specifically excluded) are included in the promotion. Important: If one or more repositories are specifically included, all other repositories are excluded (regardless of what is defined in excluded_repository_keys).
    name string
    Name of Release Bundle
    projectKey string
    Project key the Release Bundle belongs to
    environment str
    Target environment
    keypair_name str
    Key-pair name to use for signature creation
    version str
    Version to promote
    excluded_repository_keys Sequence[str]
    Defines specific repositories to exclude from the promotion.
    included_repository_keys Sequence[str]
    Defines specific repositories to include in the promotion. If this property is left undefined, all repositories (except those specifically excluded) are included in the promotion. Important: If one or more repositories are specifically included, all other repositories are excluded (regardless of what is defined in excluded_repository_keys).
    name str
    Name of Release Bundle
    project_key str
    Project key the Release Bundle belongs to
    environment String
    Target environment
    keypairName String
    Key-pair name to use for signature creation
    version String
    Version to promote
    excludedRepositoryKeys List<String>
    Defines specific repositories to exclude from the promotion.
    includedRepositoryKeys List<String>
    Defines specific repositories to include in the promotion. If this property is left undefined, all repositories (except those specifically excluded) are included in the promotion. Important: If one or more repositories are specifically included, all other repositories are excluded (regardless of what is defined in excluded_repository_keys).
    name String
    Name of Release Bundle
    projectKey String
    Project key the Release Bundle belongs to

    Outputs

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

    Created string
    Timestamp when the new version was created (ISO 8601 standard).
    CreatedMillis int
    Timestamp when the new version was created (in milliseconds).
    Id string
    The provider-assigned unique ID for this managed resource.
    Created string
    Timestamp when the new version was created (ISO 8601 standard).
    CreatedMillis int
    Timestamp when the new version was created (in milliseconds).
    Id string
    The provider-assigned unique ID for this managed resource.
    created String
    Timestamp when the new version was created (ISO 8601 standard).
    createdMillis Integer
    Timestamp when the new version was created (in milliseconds).
    id String
    The provider-assigned unique ID for this managed resource.
    created string
    Timestamp when the new version was created (ISO 8601 standard).
    createdMillis number
    Timestamp when the new version was created (in milliseconds).
    id string
    The provider-assigned unique ID for this managed resource.
    created str
    Timestamp when the new version was created (ISO 8601 standard).
    created_millis int
    Timestamp when the new version was created (in milliseconds).
    id str
    The provider-assigned unique ID for this managed resource.
    created String
    Timestamp when the new version was created (ISO 8601 standard).
    createdMillis Number
    Timestamp when the new version was created (in milliseconds).
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ReleaseBundleV2Promotion Resource

    Get an existing ReleaseBundleV2Promotion 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?: ReleaseBundleV2PromotionState, opts?: CustomResourceOptions): ReleaseBundleV2Promotion
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created: Optional[str] = None,
            created_millis: Optional[int] = None,
            environment: Optional[str] = None,
            excluded_repository_keys: Optional[Sequence[str]] = None,
            included_repository_keys: Optional[Sequence[str]] = None,
            keypair_name: Optional[str] = None,
            name: Optional[str] = None,
            project_key: Optional[str] = None,
            version: Optional[str] = None) -> ReleaseBundleV2Promotion
    func GetReleaseBundleV2Promotion(ctx *Context, name string, id IDInput, state *ReleaseBundleV2PromotionState, opts ...ResourceOption) (*ReleaseBundleV2Promotion, error)
    public static ReleaseBundleV2Promotion Get(string name, Input<string> id, ReleaseBundleV2PromotionState? state, CustomResourceOptions? opts = null)
    public static ReleaseBundleV2Promotion get(String name, Output<String> id, ReleaseBundleV2PromotionState 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:
    Created string
    Timestamp when the new version was created (ISO 8601 standard).
    CreatedMillis int
    Timestamp when the new version was created (in milliseconds).
    Environment string
    Target environment
    ExcludedRepositoryKeys List<string>
    Defines specific repositories to exclude from the promotion.
    IncludedRepositoryKeys List<string>
    Defines specific repositories to include in the promotion. If this property is left undefined, all repositories (except those specifically excluded) are included in the promotion. Important: If one or more repositories are specifically included, all other repositories are excluded (regardless of what is defined in excluded_repository_keys).
    KeypairName string
    Key-pair name to use for signature creation
    Name string
    Name of Release Bundle
    ProjectKey string
    Project key the Release Bundle belongs to
    Version string
    Version to promote
    Created string
    Timestamp when the new version was created (ISO 8601 standard).
    CreatedMillis int
    Timestamp when the new version was created (in milliseconds).
    Environment string
    Target environment
    ExcludedRepositoryKeys []string
    Defines specific repositories to exclude from the promotion.
    IncludedRepositoryKeys []string
    Defines specific repositories to include in the promotion. If this property is left undefined, all repositories (except those specifically excluded) are included in the promotion. Important: If one or more repositories are specifically included, all other repositories are excluded (regardless of what is defined in excluded_repository_keys).
    KeypairName string
    Key-pair name to use for signature creation
    Name string
    Name of Release Bundle
    ProjectKey string
    Project key the Release Bundle belongs to
    Version string
    Version to promote
    created String
    Timestamp when the new version was created (ISO 8601 standard).
    createdMillis Integer
    Timestamp when the new version was created (in milliseconds).
    environment String
    Target environment
    excludedRepositoryKeys List<String>
    Defines specific repositories to exclude from the promotion.
    includedRepositoryKeys List<String>
    Defines specific repositories to include in the promotion. If this property is left undefined, all repositories (except those specifically excluded) are included in the promotion. Important: If one or more repositories are specifically included, all other repositories are excluded (regardless of what is defined in excluded_repository_keys).
    keypairName String
    Key-pair name to use for signature creation
    name String
    Name of Release Bundle
    projectKey String
    Project key the Release Bundle belongs to
    version String
    Version to promote
    created string
    Timestamp when the new version was created (ISO 8601 standard).
    createdMillis number
    Timestamp when the new version was created (in milliseconds).
    environment string
    Target environment
    excludedRepositoryKeys string[]
    Defines specific repositories to exclude from the promotion.
    includedRepositoryKeys string[]
    Defines specific repositories to include in the promotion. If this property is left undefined, all repositories (except those specifically excluded) are included in the promotion. Important: If one or more repositories are specifically included, all other repositories are excluded (regardless of what is defined in excluded_repository_keys).
    keypairName string
    Key-pair name to use for signature creation
    name string
    Name of Release Bundle
    projectKey string
    Project key the Release Bundle belongs to
    version string
    Version to promote
    created str
    Timestamp when the new version was created (ISO 8601 standard).
    created_millis int
    Timestamp when the new version was created (in milliseconds).
    environment str
    Target environment
    excluded_repository_keys Sequence[str]
    Defines specific repositories to exclude from the promotion.
    included_repository_keys Sequence[str]
    Defines specific repositories to include in the promotion. If this property is left undefined, all repositories (except those specifically excluded) are included in the promotion. Important: If one or more repositories are specifically included, all other repositories are excluded (regardless of what is defined in excluded_repository_keys).
    keypair_name str
    Key-pair name to use for signature creation
    name str
    Name of Release Bundle
    project_key str
    Project key the Release Bundle belongs to
    version str
    Version to promote
    created String
    Timestamp when the new version was created (ISO 8601 standard).
    createdMillis Number
    Timestamp when the new version was created (in milliseconds).
    environment String
    Target environment
    excludedRepositoryKeys List<String>
    Defines specific repositories to exclude from the promotion.
    includedRepositoryKeys List<String>
    Defines specific repositories to include in the promotion. If this property is left undefined, all repositories (except those specifically excluded) are included in the promotion. Important: If one or more repositories are specifically included, all other repositories are excluded (regardless of what is defined in excluded_repository_keys).
    keypairName String
    Key-pair name to use for signature creation
    name String
    Name of Release Bundle
    projectKey String
    Project key the Release Bundle belongs to
    version String
    Version to promote

    Package Details

    Repository
    artifactory pulumi/pulumi-artifactory
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the artifactory Terraform Provider.
    artifactory logo
    artifactory v8.1.0 published on Saturday, Sep 28, 2024 by Pulumi