@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
170 lines (169 loc) • 7 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Creates a Signer Signing Profile Permission. That is, a cross-account permission for a signing profile.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const prodSp = new aws.signer.SigningProfile("prod_sp", {
* platformId: "AWSLambda-SHA384-ECDSA",
* namePrefix: "prod_sp_",
* signatureValidityPeriod: {
* value: 5,
* type: "YEARS",
* },
* tags: {
* tag1: "value1",
* tag2: "value2",
* },
* });
* const spPermission1 = new aws.signer.SigningProfilePermission("sp_permission_1", {
* profileName: prodSp.name,
* action: "signer:StartSigningJob",
* principal: awsAccount,
* });
* const spPermission2 = new aws.signer.SigningProfilePermission("sp_permission_2", {
* profileName: prodSp.name,
* action: "signer:GetSigningProfile",
* principal: awsTeamRoleArn,
* statementId: "ProdAccountStartSigningJob_StatementId",
* });
* const spPermission3 = new aws.signer.SigningProfilePermission("sp_permission_3", {
* profileName: prodSp.name,
* action: "signer:RevokeSignature",
* principal: "123456789012",
* profileVersion: prodSp.version,
* statementIdPrefix: "version-permission-",
* });
* ```
*
* ## Import
*
* Using `pulumi import`, import Signer signing profile permission statements using profile_name/statement_id. For example:
*
* ```sh
* $ pulumi import aws:signer/signingProfilePermission:SigningProfilePermission test_signer_signing_profile_permission prod_profile_DdW3Mk1foYL88fajut4mTVFGpuwfd4ACO6ANL0D1uIj7lrn8adK/ProdAccountStartSigningJobStatementId
* ```
*/
export declare class SigningProfilePermission extends pulumi.CustomResource {
/**
* Get an existing SigningProfilePermission resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SigningProfilePermissionState, opts?: pulumi.CustomResourceOptions): SigningProfilePermission;
/**
* Returns true if the given object is an instance of SigningProfilePermission. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is SigningProfilePermission;
/**
* An AWS Signer action permitted as part of cross-account permissions. Valid values: `signer:StartSigningJob`, `signer:GetSigningProfile`, `signer:RevokeSignature`, or `signer:SignPayload`.
*/
readonly action: pulumi.Output<string>;
/**
* The AWS principal to be granted a cross-account permission.
*/
readonly principal: pulumi.Output<string>;
/**
* Name of the signing profile to add the cross-account permissions.
*/
readonly profileName: pulumi.Output<string>;
/**
* The signing profile version that a permission applies to.
*/
readonly profileVersion: pulumi.Output<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
readonly region: pulumi.Output<string>;
/**
* A unique statement identifier. By default generated by the provider.
*/
readonly statementId: pulumi.Output<string>;
/**
* A statement identifier prefix. The provider will generate a unique suffix. Conflicts with `statementId`.
*/
readonly statementIdPrefix: pulumi.Output<string>;
/**
* Create a SigningProfilePermission resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: SigningProfilePermissionArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering SigningProfilePermission resources.
*/
export interface SigningProfilePermissionState {
/**
* An AWS Signer action permitted as part of cross-account permissions. Valid values: `signer:StartSigningJob`, `signer:GetSigningProfile`, `signer:RevokeSignature`, or `signer:SignPayload`.
*/
action?: pulumi.Input<string>;
/**
* The AWS principal to be granted a cross-account permission.
*/
principal?: pulumi.Input<string>;
/**
* Name of the signing profile to add the cross-account permissions.
*/
profileName?: pulumi.Input<string>;
/**
* The signing profile version that a permission applies to.
*/
profileVersion?: pulumi.Input<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
/**
* A unique statement identifier. By default generated by the provider.
*/
statementId?: pulumi.Input<string>;
/**
* A statement identifier prefix. The provider will generate a unique suffix. Conflicts with `statementId`.
*/
statementIdPrefix?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a SigningProfilePermission resource.
*/
export interface SigningProfilePermissionArgs {
/**
* An AWS Signer action permitted as part of cross-account permissions. Valid values: `signer:StartSigningJob`, `signer:GetSigningProfile`, `signer:RevokeSignature`, or `signer:SignPayload`.
*/
action: pulumi.Input<string>;
/**
* The AWS principal to be granted a cross-account permission.
*/
principal: pulumi.Input<string>;
/**
* Name of the signing profile to add the cross-account permissions.
*/
profileName: pulumi.Input<string>;
/**
* The signing profile version that a permission applies to.
*/
profileVersion?: pulumi.Input<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
/**
* A unique statement identifier. By default generated by the provider.
*/
statementId?: pulumi.Input<string>;
/**
* A statement identifier prefix. The provider will generate a unique suffix. Conflicts with `statementId`.
*/
statementIdPrefix?: pulumi.Input<string>;
}