package cxapi import ( _init_ "github.com/aws/aws-cdk-go/awscdk/v2/jsii" _jsii_ "github.com/aws/jsii-runtime-go/runtime" "github.com/aws/aws-cdk-go/awscdk/v2/cloudassemblyschema" ) // Represents an artifact within a cloud assembly. // // Example: // // The code below shows an example of how to instantiate this type. // // The values are placeholders you should change. // import "github.com/aws/aws-cdk-go/awscdk" // import "github.com/aws/aws-cdk-go/awscdk" // // var cloudAssembly cloudAssembly // // cloudArtifact := awscdk.Cx_api.CloudArtifact_FromManifest(cloudAssembly, jsii.String("MyCloudArtifact"), &ArtifactManifest{ // Type: awscdk.Cloud_assembly_schema.ArtifactType_NONE, // // // the properties below are optional // Dependencies: []*string{ // jsii.String("dependencies"), // }, // DisplayName: jsii.String("displayName"), // Environment: jsii.String("environment"), // Metadata: map[string][]metadataEntry{ // "metadataKey": []*metadataEntry{ // &metadataEntry{ // "type": jsii.String("type"), // // // the properties below are optional // "data": jsii.String("data"), // "trace": []*string{ // jsii.String("trace"), // }, // }, // }, // }, // Properties: &AwsCloudFormationStackProperties{ // TemplateFile: jsii.String("templateFile"), // // // the properties below are optional // AssumeRoleArn: jsii.String("assumeRoleArn"), // AssumeRoleExternalId: jsii.String("assumeRoleExternalId"), // BootstrapStackVersionSsmParameter: jsii.String("bootstrapStackVersionSsmParameter"), // CloudFormationExecutionRoleArn: jsii.String("cloudFormationExecutionRoleArn"), // LookupRole: &BootstrapRole{ // Arn: jsii.String("arn"), // // // the properties below are optional // AssumeRoleExternalId: jsii.String("assumeRoleExternalId"), // BootstrapStackVersionSsmParameter: jsii.String("bootstrapStackVersionSsmParameter"), // RequiresBootstrapStackVersion: jsii.Number(123), // }, // Parameters: map[string]*string{ // "parametersKey": jsii.String("parameters"), // }, // RequiresBootstrapStackVersion: jsii.Number(123), // StackName: jsii.String("stackName"), // StackTemplateAssetObjectUrl: jsii.String("stackTemplateAssetObjectUrl"), // Tags: map[string]*string{ // "tagsKey": jsii.String("tags"), // }, // TerminationProtection: jsii.Boolean(false), // ValidateOnSynth: jsii.Boolean(false), // }, // }) // type CloudArtifact interface { Assembly() CloudAssembly // Returns all the artifacts that this artifact depends on. Dependencies() *[]CloudArtifact // An identifier that shows where this artifact is located in the tree of nested assemblies, based on their manifests. // // Defaults to the normal // id. Should only be used in user interfaces. HierarchicalId() *string Id() *string // The artifact's manifest. Manifest() *cloudassemblyschema.ArtifactManifest // The set of messages extracted from the artifact's metadata. Messages() *[]*SynthesisMessage // Returns: all the metadata entries of a specific type in this artifact. FindMetadataByType(type_ *string) *[]*MetadataEntryResult } // The jsii proxy struct for CloudArtifact type jsiiProxy_CloudArtifact struct { _ byte // padding } func (j *jsiiProxy_CloudArtifact) Assembly() CloudAssembly { var returns CloudAssembly _jsii_.Get( j, "assembly", &returns, ) return returns } func (j *jsiiProxy_CloudArtifact) Dependencies() *[]CloudArtifact { var returns *[]CloudArtifact _jsii_.Get( j, "dependencies", &returns, ) return returns } func (j *jsiiProxy_CloudArtifact) HierarchicalId() *string { var returns *string _jsii_.Get( j, "hierarchicalId", &returns, ) return returns } func (j *jsiiProxy_CloudArtifact) Id() *string { var returns *string _jsii_.Get( j, "id", &returns, ) return returns } func (j *jsiiProxy_CloudArtifact) Manifest() *cloudassemblyschema.ArtifactManifest { var returns *cloudassemblyschema.ArtifactManifest _jsii_.Get( j, "manifest", &returns, ) return returns } func (j *jsiiProxy_CloudArtifact) Messages() *[]*SynthesisMessage { var returns *[]*SynthesisMessage _jsii_.Get( j, "messages", &returns, ) return returns } func NewCloudArtifact(assembly CloudAssembly, id *string, manifest *cloudassemblyschema.ArtifactManifest) CloudArtifact { _init_.Initialize() if err := validateNewCloudArtifactParameters(assembly, id, manifest); err != nil { panic(err) } j := jsiiProxy_CloudArtifact{} _jsii_.Create( "aws-cdk-lib.cx_api.CloudArtifact", []interface{}{assembly, id, manifest}, &j, ) return &j } func NewCloudArtifact_Override(c CloudArtifact, assembly CloudAssembly, id *string, manifest *cloudassemblyschema.ArtifactManifest) { _init_.Initialize() _jsii_.Create( "aws-cdk-lib.cx_api.CloudArtifact", []interface{}{assembly, id, manifest}, c, ) } // Returns a subclass of `CloudArtifact` based on the artifact type defined in the artifact manifest. // // Returns: the `CloudArtifact` that matches the artifact type or `undefined` if it's an artifact type that is unrecognized by this module. func CloudArtifact_FromManifest(assembly CloudAssembly, id *string, artifact *cloudassemblyschema.ArtifactManifest) CloudArtifact { _init_.Initialize() if err := validateCloudArtifact_FromManifestParameters(assembly, id, artifact); err != nil { panic(err) } var returns CloudArtifact _jsii_.StaticInvoke( "aws-cdk-lib.cx_api.CloudArtifact", "fromManifest", []interface{}{assembly, id, artifact}, &returns, ) return returns } func (c *jsiiProxy_CloudArtifact) FindMetadataByType(type_ *string) *[]*MetadataEntryResult { if err := c.validateFindMetadataByTypeParameters(type_); err != nil { panic(err) } var returns *[]*MetadataEntryResult _jsii_.Invoke( c, "findMetadataByType", []interface{}{type_}, &returns, ) return returns }