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)
type: cosign:Copy
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 CopyArgs
- 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 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 string
- The unique name of the resource.
- args CopyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CopyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := cosign.NewCopy(ctx, "copyResource", &cosign.CopyArgs{
Destination: pulumi.String("string"),
Source: pulumi.String("string"),
})
var copyResource = new Copy("copyResource", CopyArgs.builder()
.destination("string")
.source("string")
.build());
copy_resource = cosign.Copy("copyResource",
destination="string",
source="string")
const copyResource = new cosign.Copy("copyResource", {
destination: "string",
source: "string",
});
type: cosign:Copy
properties:
destination: string
source: string
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 string
- The destination repository.
- Source string
- The digest of the container image to copy.
- Destination string
- The destination repository.
- Source string
- The digest of the container image to copy.
- destination String
- The destination repository.
- source String
- The digest of the container image to copy.
- destination string
- The destination repository.
- source string
- The digest of the container image to copy.
- destination str
- The destination repository.
- source str
- The digest of the container image to copy.
- destination String
- The destination repository.
- source 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:
- 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.
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
- 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.
- Copied
Ref 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 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 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 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.
- copied
Ref 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.