335 lines
12 KiB
TypeScript
335 lines
12 KiB
TypeScript
import * as cdk from "../../core/lib";
|
|
import * as constructs from "constructs";
|
|
import * as cfn_parse from "../../core/lib/helpers-internal";
|
|
import { IProfilePermissionRef, ISigningProfileRef, ProfilePermissionReference, SigningProfileReference } from "../../interfaces/generated/aws-signer-interfaces.generated";
|
|
/**
|
|
* Adds cross-account permissions to a signing profile.
|
|
*
|
|
* @cloudformationResource AWS::Signer::ProfilePermission
|
|
* @stability external
|
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-signer-profilepermission.html
|
|
*/
|
|
export declare class CfnProfilePermission extends cdk.CfnResource implements cdk.IInspectable, IProfilePermissionRef {
|
|
/**
|
|
* The CloudFormation resource type name for this resource class.
|
|
*/
|
|
static readonly CFN_RESOURCE_TYPE_NAME: string;
|
|
/**
|
|
* Build a CfnProfilePermission from CloudFormation properties
|
|
*
|
|
* A factory method that creates a new instance of this class from an object
|
|
* containing the CloudFormation properties of this resource.
|
|
* Used in the @aws-cdk/cloudformation-include module.
|
|
*
|
|
* @internal
|
|
*/
|
|
static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnProfilePermission;
|
|
/**
|
|
* Checks whether the given object is a CfnProfilePermission
|
|
*/
|
|
static isCfnProfilePermission(x: any): x is CfnProfilePermission;
|
|
/**
|
|
* The AWS Signer action permitted as part of cross-account permissions.
|
|
*/
|
|
private _action;
|
|
/**
|
|
* The AWS principal receiving cross-account permissions.
|
|
*/
|
|
private _principal;
|
|
/**
|
|
* The human-readable name of the signing profile.
|
|
*/
|
|
private _profileName;
|
|
/**
|
|
* The version of the signing profile.
|
|
*/
|
|
private _profileVersion?;
|
|
/**
|
|
* A unique identifier for the cross-account permission statement.
|
|
*/
|
|
private _statementId;
|
|
protected readonly cfnPropertyNames: Record<string, string>;
|
|
/**
|
|
* Create a new `AWS::Signer::ProfilePermission`.
|
|
*
|
|
* @param scope Scope in which this resource is defined
|
|
* @param id Construct identifier for this resource (unique in its scope)
|
|
* @param props Resource properties
|
|
*/
|
|
constructor(scope: constructs.Construct, id: string, props: CfnProfilePermissionProps);
|
|
get profilePermissionRef(): ProfilePermissionReference;
|
|
/**
|
|
* The AWS Signer action permitted as part of cross-account permissions.
|
|
*/
|
|
get action(): string;
|
|
/**
|
|
* The AWS Signer action permitted as part of cross-account permissions.
|
|
*/
|
|
set action(value: string);
|
|
/**
|
|
* The AWS principal receiving cross-account permissions.
|
|
*/
|
|
get principal(): string;
|
|
/**
|
|
* The AWS principal receiving cross-account permissions.
|
|
*/
|
|
set principal(value: string);
|
|
/**
|
|
* The human-readable name of the signing profile.
|
|
*/
|
|
get profileName(): string;
|
|
/**
|
|
* The human-readable name of the signing profile.
|
|
*/
|
|
set profileName(value: string);
|
|
/**
|
|
* The version of the signing profile.
|
|
*/
|
|
get profileVersion(): string | undefined;
|
|
/**
|
|
* The version of the signing profile.
|
|
*/
|
|
set profileVersion(value: string | undefined);
|
|
/**
|
|
* A unique identifier for the cross-account permission statement.
|
|
*/
|
|
get statementId(): string;
|
|
/**
|
|
* A unique identifier for the cross-account permission statement.
|
|
*/
|
|
set statementId(value: string);
|
|
protected get cfnProperties(): Record<string, any>;
|
|
/**
|
|
* Examines the CloudFormation resource and discloses attributes
|
|
*
|
|
* @param inspector tree inspector to collect and process attributes
|
|
*/
|
|
inspect(inspector: cdk.TreeInspector): void;
|
|
protected renderProperties(props: Record<string, any>): Record<string, any>;
|
|
}
|
|
/**
|
|
* Properties for defining a `CfnProfilePermission`
|
|
*
|
|
* @struct
|
|
* @stability external
|
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-signer-profilepermission.html
|
|
*/
|
|
export interface CfnProfilePermissionProps {
|
|
/**
|
|
* The AWS Signer action permitted as part of cross-account permissions.
|
|
*
|
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-signer-profilepermission.html#cfn-signer-profilepermission-action
|
|
*/
|
|
readonly action: string;
|
|
/**
|
|
* The AWS principal receiving cross-account permissions.
|
|
*
|
|
* This may be an IAM role or another AWS account ID.
|
|
*
|
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-signer-profilepermission.html#cfn-signer-profilepermission-principal
|
|
*/
|
|
readonly principal: string;
|
|
/**
|
|
* The human-readable name of the signing profile.
|
|
*
|
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-signer-profilepermission.html#cfn-signer-profilepermission-profilename
|
|
*/
|
|
readonly profileName: string;
|
|
/**
|
|
* The version of the signing profile.
|
|
*
|
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-signer-profilepermission.html#cfn-signer-profilepermission-profileversion
|
|
*/
|
|
readonly profileVersion?: string;
|
|
/**
|
|
* A unique identifier for the cross-account permission statement.
|
|
*
|
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-signer-profilepermission.html#cfn-signer-profilepermission-statementid
|
|
*/
|
|
readonly statementId: string;
|
|
}
|
|
/**
|
|
* Creates a signing profile.
|
|
*
|
|
* A signing profile is a code-signing template that can be used to carry out a pre-defined signing job.
|
|
*
|
|
* @cloudformationResource AWS::Signer::SigningProfile
|
|
* @stability external
|
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-signer-signingprofile.html
|
|
*/
|
|
export declare class CfnSigningProfile extends cdk.CfnResource implements cdk.IInspectable, ISigningProfileRef, cdk.ITaggable {
|
|
/**
|
|
* The CloudFormation resource type name for this resource class.
|
|
*/
|
|
static readonly CFN_RESOURCE_TYPE_NAME: string;
|
|
/**
|
|
* Build a CfnSigningProfile from CloudFormation properties
|
|
*
|
|
* A factory method that creates a new instance of this class from an object
|
|
* containing the CloudFormation properties of this resource.
|
|
* Used in the @aws-cdk/cloudformation-include module.
|
|
*
|
|
* @internal
|
|
*/
|
|
static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnSigningProfile;
|
|
/**
|
|
* Checks whether the given object is a CfnSigningProfile
|
|
*/
|
|
static isCfnSigningProfile(x: any): x is CfnSigningProfile;
|
|
static arnForSigningProfile(resource: ISigningProfileRef): string;
|
|
/**
|
|
* The ID of a platform that is available for use by a signing profile.
|
|
*/
|
|
private _platformId;
|
|
/**
|
|
* The name of the signing profile.
|
|
*/
|
|
private _profileName?;
|
|
/**
|
|
* The validity period override for any signature generated using this signing profile.
|
|
*/
|
|
private _signatureValidityPeriod?;
|
|
/**
|
|
* Tag Manager which manages the tags for this resource
|
|
*/
|
|
readonly tags: cdk.TagManager;
|
|
/**
|
|
* A list of tags associated with the signing profile.
|
|
*/
|
|
private _tagsRaw?;
|
|
protected readonly cfnPropertyNames: Record<string, string>;
|
|
/**
|
|
* Create a new `AWS::Signer::SigningProfile`.
|
|
*
|
|
* @param scope Scope in which this resource is defined
|
|
* @param id Construct identifier for this resource (unique in its scope)
|
|
* @param props Resource properties
|
|
*/
|
|
constructor(scope: constructs.Construct, id: string, props: CfnSigningProfileProps);
|
|
get signingProfileRef(): SigningProfileReference;
|
|
/**
|
|
* The ID of a platform that is available for use by a signing profile.
|
|
*/
|
|
get platformId(): string;
|
|
/**
|
|
* The ID of a platform that is available for use by a signing profile.
|
|
*/
|
|
set platformId(value: string);
|
|
/**
|
|
* The name of the signing profile.
|
|
*/
|
|
get profileName(): string | undefined;
|
|
/**
|
|
* The name of the signing profile.
|
|
*/
|
|
set profileName(value: string | undefined);
|
|
/**
|
|
* The validity period override for any signature generated using this signing profile.
|
|
*/
|
|
get signatureValidityPeriod(): cdk.IResolvable | CfnSigningProfile.SignatureValidityPeriodProperty | undefined;
|
|
/**
|
|
* The validity period override for any signature generated using this signing profile.
|
|
*/
|
|
set signatureValidityPeriod(value: cdk.IResolvable | CfnSigningProfile.SignatureValidityPeriodProperty | undefined);
|
|
/**
|
|
* A list of tags associated with the signing profile.
|
|
*/
|
|
get tagsRaw(): Array<cdk.CfnTag> | undefined;
|
|
/**
|
|
* A list of tags associated with the signing profile.
|
|
*/
|
|
set tagsRaw(value: Array<cdk.CfnTag> | undefined);
|
|
/**
|
|
* The Amazon Resource Name (ARN) of the signing profile created.
|
|
*
|
|
* @cloudformationAttribute Arn
|
|
*/
|
|
get attrArn(): string;
|
|
/**
|
|
* The name of the signing profile created.
|
|
*
|
|
* @cloudformationAttribute ProfileName
|
|
*/
|
|
get attrProfileName(): string;
|
|
/**
|
|
* The version of the signing profile created.
|
|
*
|
|
* @cloudformationAttribute ProfileVersion
|
|
*/
|
|
get attrProfileVersion(): string;
|
|
/**
|
|
* The signing profile ARN, including the profile version.
|
|
*
|
|
* @cloudformationAttribute ProfileVersionArn
|
|
*/
|
|
get attrProfileVersionArn(): string;
|
|
protected get cfnProperties(): Record<string, any>;
|
|
/**
|
|
* Examines the CloudFormation resource and discloses attributes
|
|
*
|
|
* @param inspector tree inspector to collect and process attributes
|
|
*/
|
|
inspect(inspector: cdk.TreeInspector): void;
|
|
protected renderProperties(props: Record<string, any>): Record<string, any>;
|
|
}
|
|
export declare namespace CfnSigningProfile {
|
|
/**
|
|
* The validity period for the signing job.
|
|
*
|
|
* @struct
|
|
* @stability external
|
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-signer-signingprofile-signaturevalidityperiod.html
|
|
*/
|
|
interface SignatureValidityPeriodProperty {
|
|
/**
|
|
* The time unit for signature validity: DAYS | MONTHS | YEARS.
|
|
*
|
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-signer-signingprofile-signaturevalidityperiod.html#cfn-signer-signingprofile-signaturevalidityperiod-type
|
|
*/
|
|
readonly type?: string;
|
|
/**
|
|
* The numerical value of the time unit for signature validity.
|
|
*
|
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-signer-signingprofile-signaturevalidityperiod.html#cfn-signer-signingprofile-signaturevalidityperiod-value
|
|
*/
|
|
readonly value?: number;
|
|
}
|
|
}
|
|
/**
|
|
* Properties for defining a `CfnSigningProfile`
|
|
*
|
|
* @struct
|
|
* @stability external
|
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-signer-signingprofile.html
|
|
*/
|
|
export interface CfnSigningProfileProps {
|
|
/**
|
|
* The ID of a platform that is available for use by a signing profile.
|
|
*
|
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-signer-signingprofile.html#cfn-signer-signingprofile-platformid
|
|
*/
|
|
readonly platformId: string;
|
|
/**
|
|
* The name of the signing profile.
|
|
*
|
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-signer-signingprofile.html#cfn-signer-signingprofile-profilename
|
|
*/
|
|
readonly profileName?: string;
|
|
/**
|
|
* The validity period override for any signature generated using this signing profile.
|
|
*
|
|
* If unspecified, the default is 135 months.
|
|
*
|
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-signer-signingprofile.html#cfn-signer-signingprofile-signaturevalidityperiod
|
|
*/
|
|
readonly signatureValidityPeriod?: cdk.IResolvable | CfnSigningProfile.SignatureValidityPeriodProperty;
|
|
/**
|
|
* A list of tags associated with the signing profile.
|
|
*
|
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-signer-signingprofile.html#cfn-signer-signingprofile-tags
|
|
*/
|
|
readonly tags?: Array<cdk.CfnTag>;
|
|
}
|
|
export type { IProfilePermissionRef, ProfilePermissionReference };
|
|
export type { ISigningProfileRef, SigningProfileReference };
|