1. Packages
  2. Cosign Provider
  3. API Docs
  4. Copy
cosign 0.0.25 published on Tuesday, Apr 15, 2025 by chainguard-dev

cosign.Copy

Explore with Pulumi AI

This copies the provided image digest cosign copy.

Create Copy Resource

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

Constructor syntax

new Copy(name: string, args: CopyArgs, opts?: CustomResourceOptions);
@overload
def Copy(resource_name: str,
         args: CopyArgs,
         opts: Optional[ResourceOptions] = None)

@overload
def Copy(resource_name: str,
         opts: Optional[ResourceOptions] = None,
         destination: Optional[str] = None,
         source: Optional[str] = None)
func NewCopy(ctx *Context, name string, args CopyArgs, opts ...ResourceOption) (*Copy, error)
public Copy(string name, CopyArgs args, CustomResourceOptions? opts = null)
public Copy(String name, CopyArgs args)
public Copy(String name, CopyArgs args, CustomResourceOptions options)
type: cosign:Copy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CopyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CopyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CopyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CopyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CopyArgs
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 copyResource = new Cosign.Copy("copyResource", new()
{
    Destination = "string",
    Source = "string",
});
Copy
example, err := cosign.NewCopy(ctx, "copyResource", &cosign.CopyArgs{
Destination: pulumi.String("string"),
Source: pulumi.String("string"),
})
Copy
var copyResource = new Copy("copyResource", CopyArgs.builder()
    .destination("string")
    .source("string")
    .build());
Copy
copy_resource = cosign.Copy("copyResource",
    destination="string",
    source="string")
Copy
const copyResource = new cosign.Copy("copyResource", {
    destination: "string",
    source: "string",
});
Copy
type: cosign:Copy
properties:
    destination: string
    source: string
Copy

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

Destination This property is required. string
The destination repository.
Source This property is required. string
The digest of the container image to copy.
Destination This property is required. string
The destination repository.
Source This property is required. string
The digest of the container image to copy.
destination This property is required. String
The destination repository.
source This property is required. String
The digest of the container image to copy.
destination This property is required. string
The destination repository.
source This property is required. string
The digest of the container image to copy.
destination This property is required. str
The destination repository.
source This property is required. str
The digest of the container image to copy.
destination This property is required. String
The destination repository.
source This property is required. String
The digest of the container image to copy.

Outputs

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

CopiedRef string
This always matches the input digest, but is a convenience for composition.
Id string
The provider-assigned unique ID for this managed resource.
CopiedRef string
This always matches the input digest, but is a convenience for composition.
Id string
The provider-assigned unique ID for this managed resource.
copiedRef String
This always matches the input digest, but is a convenience for composition.
id String
The provider-assigned unique ID for this managed resource.
copiedRef string
This always matches the input digest, but is a convenience for composition.
id string
The provider-assigned unique ID for this managed resource.
copied_ref str
This always matches the input digest, but is a convenience for composition.
id str
The provider-assigned unique ID for this managed resource.
copiedRef String
This always matches the input digest, but is a convenience for composition.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing Copy Resource

Get an existing Copy 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?: CopyState, opts?: CustomResourceOptions): Copy
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        copied_ref: Optional[str] = None,
        destination: Optional[str] = None,
        source: Optional[str] = None) -> Copy
func GetCopy(ctx *Context, name string, id IDInput, state *CopyState, opts ...ResourceOption) (*Copy, error)
public static Copy Get(string name, Input<string> id, CopyState? state, CustomResourceOptions? opts = null)
public static Copy get(String name, Output<String> id, CopyState state, CustomResourceOptions options)
resources:  _:    type: cosign:Copy    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CopiedRef string
This always matches the input digest, but is a convenience for composition.
Destination string
The destination repository.
Source string
The digest of the container image to copy.
CopiedRef string
This always matches the input digest, but is a convenience for composition.
Destination string
The destination repository.
Source string
The digest of the container image to copy.
copiedRef String
This always matches the input digest, but is a convenience for composition.
destination String
The destination repository.
source String
The digest of the container image to copy.
copiedRef string
This always matches the input digest, but is a convenience for composition.
destination string
The destination repository.
source string
The digest of the container image to copy.
copied_ref str
This always matches the input digest, but is a convenience for composition.
destination str
The destination repository.
source str
The digest of the container image to copy.
copiedRef String
This always matches the input digest, but is a convenience for composition.
destination String
The destination repository.
source String
The digest of the container image to copy.

Package Details

Repository
cosign chainguard-dev/terraform-provider-cosign
License
Notes
This Pulumi package is based on the cosign Terraform Provider.