artifactory.RepositoryLayout
Explore with Pulumi AI
This resource can be used to manage Artifactory’s Repository Layout settings. See Repository Layouts in the Artifactory Wiki documentation for more details.
~>The artifactory.RepositoryLayout
resource utilizes endpoints which are blocked/removed in SaaS environments (i.e. in Artifactory online), rendering this resource incompatible with Artifactory SaaS environments.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as artifactory from "@pulumi/artifactory";
const custom_layout = new artifactory.RepositoryLayout("custom-layout", {
name: "custom-layout",
artifactPathPattern: "[orgPath]/[module]/[baseRev](-[folderItegRev])/[module]-[baseRev](-[fileItegRev])(-[classifier]).[ext]",
distinctiveDescriptorPathPattern: true,
descriptorPathPattern: "[orgPath]/[module]/[baseRev](-[folderItegRev])/[module]-[baseRev](-[fileItegRev])(-[classifier]).pom",
folderIntegrationRevisionRegexp: "Foo",
fileIntegrationRevisionRegexp: "Foo|(?:(?:[0-9]{8}.[0-9]{6})-(?:[0-9]+))",
});
import pulumi
import pulumi_artifactory as artifactory
custom_layout = artifactory.RepositoryLayout("custom-layout",
name="custom-layout",
artifact_path_pattern="[orgPath]/[module]/[baseRev](-[folderItegRev])/[module]-[baseRev](-[fileItegRev])(-[classifier]).[ext]",
distinctive_descriptor_path_pattern=True,
descriptor_path_pattern="[orgPath]/[module]/[baseRev](-[folderItegRev])/[module]-[baseRev](-[fileItegRev])(-[classifier]).pom",
folder_integration_revision_regexp="Foo",
file_integration_revision_regexp="Foo|(?:(?:[0-9]{8}.[0-9]{6})-(?:[0-9]+))")
package main
import (
"github.com/pulumi/pulumi-artifactory/sdk/v6/go/artifactory"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := artifactory.NewRepositoryLayout(ctx, "custom-layout", &artifactory.RepositoryLayoutArgs{
Name: pulumi.String("custom-layout"),
ArtifactPathPattern: pulumi.String("[orgPath]/[module]/[baseRev](-[folderItegRev])/[module]-[baseRev](-[fileItegRev])(-[classifier]).[ext]"),
DistinctiveDescriptorPathPattern: pulumi.Bool(true),
DescriptorPathPattern: pulumi.String("[orgPath]/[module]/[baseRev](-[folderItegRev])/[module]-[baseRev](-[fileItegRev])(-[classifier]).pom"),
FolderIntegrationRevisionRegexp: pulumi.String("Foo"),
FileIntegrationRevisionRegexp: pulumi.String("Foo|(?:(?:[0-9]{8}.[0-9]{6})-(?:[0-9]+))"),
})
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 custom_layout = new Artifactory.RepositoryLayout("custom-layout", new()
{
Name = "custom-layout",
ArtifactPathPattern = "[orgPath]/[module]/[baseRev](-[folderItegRev])/[module]-[baseRev](-[fileItegRev])(-[classifier]).[ext]",
DistinctiveDescriptorPathPattern = true,
DescriptorPathPattern = "[orgPath]/[module]/[baseRev](-[folderItegRev])/[module]-[baseRev](-[fileItegRev])(-[classifier]).pom",
FolderIntegrationRevisionRegexp = "Foo",
FileIntegrationRevisionRegexp = "Foo|(?:(?:[0-9]{8}.[0-9]{6})-(?:[0-9]+))",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.artifactory.RepositoryLayout;
import com.pulumi.artifactory.RepositoryLayoutArgs;
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 custom_layout = new RepositoryLayout("custom-layout", RepositoryLayoutArgs.builder()
.name("custom-layout")
.artifactPathPattern("[orgPath]/[module]/[baseRev](-[folderItegRev])/[module]-[baseRev](-[fileItegRev])(-[classifier]).[ext]")
.distinctiveDescriptorPathPattern(true)
.descriptorPathPattern("[orgPath]/[module]/[baseRev](-[folderItegRev])/[module]-[baseRev](-[fileItegRev])(-[classifier]).pom")
.folderIntegrationRevisionRegexp("Foo")
.fileIntegrationRevisionRegexp("Foo|(?:(?:[0-9]{8}.[0-9]{6})-(?:[0-9]+))")
.build());
}
}
resources:
custom-layout:
type: artifactory:RepositoryLayout
properties:
name: custom-layout
artifactPathPattern: '[orgPath]/[module]/[baseRev](-[folderItegRev])/[module]-[baseRev](-[fileItegRev])(-[classifier]).[ext]'
distinctiveDescriptorPathPattern: true
descriptorPathPattern: '[orgPath]/[module]/[baseRev](-[folderItegRev])/[module]-[baseRev](-[fileItegRev])(-[classifier]).pom'
folderIntegrationRevisionRegexp: Foo
fileIntegrationRevisionRegexp: Foo|(?:(?:[0-9]{8}.[0-9]{6})-(?:[0-9]+))
Create RepositoryLayout Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RepositoryLayout(name: string, args: RepositoryLayoutArgs, opts?: CustomResourceOptions);
@overload
def RepositoryLayout(resource_name: str,
args: RepositoryLayoutArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RepositoryLayout(resource_name: str,
opts: Optional[ResourceOptions] = None,
artifact_path_pattern: Optional[str] = None,
file_integration_revision_regexp: Optional[str] = None,
folder_integration_revision_regexp: Optional[str] = None,
descriptor_path_pattern: Optional[str] = None,
distinctive_descriptor_path_pattern: Optional[bool] = None,
name: Optional[str] = None)
func NewRepositoryLayout(ctx *Context, name string, args RepositoryLayoutArgs, opts ...ResourceOption) (*RepositoryLayout, error)
public RepositoryLayout(string name, RepositoryLayoutArgs args, CustomResourceOptions? opts = null)
public RepositoryLayout(String name, RepositoryLayoutArgs args)
public RepositoryLayout(String name, RepositoryLayoutArgs args, CustomResourceOptions options)
type: artifactory:RepositoryLayout
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 RepositoryLayoutArgs
- 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 RepositoryLayoutArgs
- 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 RepositoryLayoutArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RepositoryLayoutArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RepositoryLayoutArgs
- 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 repositoryLayoutResource = new Artifactory.RepositoryLayout("repositoryLayoutResource", new()
{
ArtifactPathPattern = "string",
FileIntegrationRevisionRegexp = "string",
FolderIntegrationRevisionRegexp = "string",
DescriptorPathPattern = "string",
DistinctiveDescriptorPathPattern = false,
Name = "string",
});
example, err := artifactory.NewRepositoryLayout(ctx, "repositoryLayoutResource", &artifactory.RepositoryLayoutArgs{
ArtifactPathPattern: pulumi.String("string"),
FileIntegrationRevisionRegexp: pulumi.String("string"),
FolderIntegrationRevisionRegexp: pulumi.String("string"),
DescriptorPathPattern: pulumi.String("string"),
DistinctiveDescriptorPathPattern: pulumi.Bool(false),
Name: pulumi.String("string"),
})
var repositoryLayoutResource = new RepositoryLayout("repositoryLayoutResource", RepositoryLayoutArgs.builder()
.artifactPathPattern("string")
.fileIntegrationRevisionRegexp("string")
.folderIntegrationRevisionRegexp("string")
.descriptorPathPattern("string")
.distinctiveDescriptorPathPattern(false)
.name("string")
.build());
repository_layout_resource = artifactory.RepositoryLayout("repositoryLayoutResource",
artifact_path_pattern="string",
file_integration_revision_regexp="string",
folder_integration_revision_regexp="string",
descriptor_path_pattern="string",
distinctive_descriptor_path_pattern=False,
name="string")
const repositoryLayoutResource = new artifactory.RepositoryLayout("repositoryLayoutResource", {
artifactPathPattern: "string",
fileIntegrationRevisionRegexp: "string",
folderIntegrationRevisionRegexp: "string",
descriptorPathPattern: "string",
distinctiveDescriptorPathPattern: false,
name: "string",
});
type: artifactory:RepositoryLayout
properties:
artifactPathPattern: string
descriptorPathPattern: string
distinctiveDescriptorPathPattern: false
fileIntegrationRevisionRegexp: string
folderIntegrationRevisionRegexp: string
name: string
RepositoryLayout 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 RepositoryLayout resource accepts the following input properties:
- Artifact
Path stringPattern - Please refer to: Path Patterns in the Artifactory Wiki documentation.
- File
Integration stringRevision Regexp - A regular expression matching the integration revision string appearing in a file name as part of the artifact's path. For example,
SNAPSHOT|(?:(?:[0-9]{8}.[0-9]{6})-(?:[0-9]+))
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- Folder
Integration stringRevision Regexp - A regular expression matching the integration revision string appearing in a folder name as part of the artifact's path. For example,
SNAPSHOT
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- Descriptor
Path stringPattern - Please refer to: Descriptor Path Patterns in the Artifactory Wiki documentation.
- Distinctive
Descriptor boolPath Pattern - When set,
descriptor_path_pattern
will be used. Default tofalse
. - Name string
- Layout name
- Artifact
Path stringPattern - Please refer to: Path Patterns in the Artifactory Wiki documentation.
- File
Integration stringRevision Regexp - A regular expression matching the integration revision string appearing in a file name as part of the artifact's path. For example,
SNAPSHOT|(?:(?:[0-9]{8}.[0-9]{6})-(?:[0-9]+))
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- Folder
Integration stringRevision Regexp - A regular expression matching the integration revision string appearing in a folder name as part of the artifact's path. For example,
SNAPSHOT
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- Descriptor
Path stringPattern - Please refer to: Descriptor Path Patterns in the Artifactory Wiki documentation.
- Distinctive
Descriptor boolPath Pattern - When set,
descriptor_path_pattern
will be used. Default tofalse
. - Name string
- Layout name
- artifact
Path StringPattern - Please refer to: Path Patterns in the Artifactory Wiki documentation.
- file
Integration StringRevision Regexp - A regular expression matching the integration revision string appearing in a file name as part of the artifact's path. For example,
SNAPSHOT|(?:(?:[0-9]{8}.[0-9]{6})-(?:[0-9]+))
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- folder
Integration StringRevision Regexp - A regular expression matching the integration revision string appearing in a folder name as part of the artifact's path. For example,
SNAPSHOT
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- descriptor
Path StringPattern - Please refer to: Descriptor Path Patterns in the Artifactory Wiki documentation.
- distinctive
Descriptor BooleanPath Pattern - When set,
descriptor_path_pattern
will be used. Default tofalse
. - name String
- Layout name
- artifact
Path stringPattern - Please refer to: Path Patterns in the Artifactory Wiki documentation.
- file
Integration stringRevision Regexp - A regular expression matching the integration revision string appearing in a file name as part of the artifact's path. For example,
SNAPSHOT|(?:(?:[0-9]{8}.[0-9]{6})-(?:[0-9]+))
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- folder
Integration stringRevision Regexp - A regular expression matching the integration revision string appearing in a folder name as part of the artifact's path. For example,
SNAPSHOT
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- descriptor
Path stringPattern - Please refer to: Descriptor Path Patterns in the Artifactory Wiki documentation.
- distinctive
Descriptor booleanPath Pattern - When set,
descriptor_path_pattern
will be used. Default tofalse
. - name string
- Layout name
- artifact_
path_ strpattern - Please refer to: Path Patterns in the Artifactory Wiki documentation.
- file_
integration_ strrevision_ regexp - A regular expression matching the integration revision string appearing in a file name as part of the artifact's path. For example,
SNAPSHOT|(?:(?:[0-9]{8}.[0-9]{6})-(?:[0-9]+))
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- folder_
integration_ strrevision_ regexp - A regular expression matching the integration revision string appearing in a folder name as part of the artifact's path. For example,
SNAPSHOT
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- descriptor_
path_ strpattern - Please refer to: Descriptor Path Patterns in the Artifactory Wiki documentation.
- distinctive_
descriptor_ boolpath_ pattern - When set,
descriptor_path_pattern
will be used. Default tofalse
. - name str
- Layout name
- artifact
Path StringPattern - Please refer to: Path Patterns in the Artifactory Wiki documentation.
- file
Integration StringRevision Regexp - A regular expression matching the integration revision string appearing in a file name as part of the artifact's path. For example,
SNAPSHOT|(?:(?:[0-9]{8}.[0-9]{6})-(?:[0-9]+))
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- folder
Integration StringRevision Regexp - A regular expression matching the integration revision string appearing in a folder name as part of the artifact's path. For example,
SNAPSHOT
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- descriptor
Path StringPattern - Please refer to: Descriptor Path Patterns in the Artifactory Wiki documentation.
- distinctive
Descriptor BooleanPath Pattern - When set,
descriptor_path_pattern
will be used. Default tofalse
. - name String
- Layout name
Outputs
All input properties are implicitly available as output properties. Additionally, the RepositoryLayout resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing RepositoryLayout Resource
Get an existing RepositoryLayout 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?: RepositoryLayoutState, opts?: CustomResourceOptions): RepositoryLayout
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
artifact_path_pattern: Optional[str] = None,
descriptor_path_pattern: Optional[str] = None,
distinctive_descriptor_path_pattern: Optional[bool] = None,
file_integration_revision_regexp: Optional[str] = None,
folder_integration_revision_regexp: Optional[str] = None,
name: Optional[str] = None) -> RepositoryLayout
func GetRepositoryLayout(ctx *Context, name string, id IDInput, state *RepositoryLayoutState, opts ...ResourceOption) (*RepositoryLayout, error)
public static RepositoryLayout Get(string name, Input<string> id, RepositoryLayoutState? state, CustomResourceOptions? opts = null)
public static RepositoryLayout get(String name, Output<String> id, RepositoryLayoutState 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.
- Artifact
Path stringPattern - Please refer to: Path Patterns in the Artifactory Wiki documentation.
- Descriptor
Path stringPattern - Please refer to: Descriptor Path Patterns in the Artifactory Wiki documentation.
- Distinctive
Descriptor boolPath Pattern - When set,
descriptor_path_pattern
will be used. Default tofalse
. - File
Integration stringRevision Regexp - A regular expression matching the integration revision string appearing in a file name as part of the artifact's path. For example,
SNAPSHOT|(?:(?:[0-9]{8}.[0-9]{6})-(?:[0-9]+))
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- Folder
Integration stringRevision Regexp - A regular expression matching the integration revision string appearing in a folder name as part of the artifact's path. For example,
SNAPSHOT
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- Name string
- Layout name
- Artifact
Path stringPattern - Please refer to: Path Patterns in the Artifactory Wiki documentation.
- Descriptor
Path stringPattern - Please refer to: Descriptor Path Patterns in the Artifactory Wiki documentation.
- Distinctive
Descriptor boolPath Pattern - When set,
descriptor_path_pattern
will be used. Default tofalse
. - File
Integration stringRevision Regexp - A regular expression matching the integration revision string appearing in a file name as part of the artifact's path. For example,
SNAPSHOT|(?:(?:[0-9]{8}.[0-9]{6})-(?:[0-9]+))
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- Folder
Integration stringRevision Regexp - A regular expression matching the integration revision string appearing in a folder name as part of the artifact's path. For example,
SNAPSHOT
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- Name string
- Layout name
- artifact
Path StringPattern - Please refer to: Path Patterns in the Artifactory Wiki documentation.
- descriptor
Path StringPattern - Please refer to: Descriptor Path Patterns in the Artifactory Wiki documentation.
- distinctive
Descriptor BooleanPath Pattern - When set,
descriptor_path_pattern
will be used. Default tofalse
. - file
Integration StringRevision Regexp - A regular expression matching the integration revision string appearing in a file name as part of the artifact's path. For example,
SNAPSHOT|(?:(?:[0-9]{8}.[0-9]{6})-(?:[0-9]+))
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- folder
Integration StringRevision Regexp - A regular expression matching the integration revision string appearing in a folder name as part of the artifact's path. For example,
SNAPSHOT
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- name String
- Layout name
- artifact
Path stringPattern - Please refer to: Path Patterns in the Artifactory Wiki documentation.
- descriptor
Path stringPattern - Please refer to: Descriptor Path Patterns in the Artifactory Wiki documentation.
- distinctive
Descriptor booleanPath Pattern - When set,
descriptor_path_pattern
will be used. Default tofalse
. - file
Integration stringRevision Regexp - A regular expression matching the integration revision string appearing in a file name as part of the artifact's path. For example,
SNAPSHOT|(?:(?:[0-9]{8}.[0-9]{6})-(?:[0-9]+))
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- folder
Integration stringRevision Regexp - A regular expression matching the integration revision string appearing in a folder name as part of the artifact's path. For example,
SNAPSHOT
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- name string
- Layout name
- artifact_
path_ strpattern - Please refer to: Path Patterns in the Artifactory Wiki documentation.
- descriptor_
path_ strpattern - Please refer to: Descriptor Path Patterns in the Artifactory Wiki documentation.
- distinctive_
descriptor_ boolpath_ pattern - When set,
descriptor_path_pattern
will be used. Default tofalse
. - file_
integration_ strrevision_ regexp - A regular expression matching the integration revision string appearing in a file name as part of the artifact's path. For example,
SNAPSHOT|(?:(?:[0-9]{8}.[0-9]{6})-(?:[0-9]+))
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- folder_
integration_ strrevision_ regexp - A regular expression matching the integration revision string appearing in a folder name as part of the artifact's path. For example,
SNAPSHOT
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- name str
- Layout name
- artifact
Path StringPattern - Please refer to: Path Patterns in the Artifactory Wiki documentation.
- descriptor
Path StringPattern - Please refer to: Descriptor Path Patterns in the Artifactory Wiki documentation.
- distinctive
Descriptor BooleanPath Pattern - When set,
descriptor_path_pattern
will be used. Default tofalse
. - file
Integration StringRevision Regexp - A regular expression matching the integration revision string appearing in a file name as part of the artifact's path. For example,
SNAPSHOT|(?:(?:[0-9]{8}.[0-9]{6})-(?:[0-9]+))
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- folder
Integration StringRevision Regexp - A regular expression matching the integration revision string appearing in a folder name as part of the artifact's path. For example,
SNAPSHOT
, in Maven. Note! Take care not to introduce any regexp capturing groups within this expression. If not applicable use.*
- name String
- Layout name
Import
Repository layout can be imported using its name, e.g.
$ pulumi import artifactory:index/repositoryLayout:RepositoryLayout custom-layout custom-layout
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- artifactory pulumi/pulumi-artifactory
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
artifactory
Terraform Provider.