Class CfnRepositoryLink

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.codestarconnections.CfnRepositoryLink
All Implemented Interfaces:
IInspectable, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:33:59.381Z") @Stability(Stable) public class CfnRepositoryLink extends CfnResource implements IInspectable, ITaggableV2
Information about the repository link resource, such as the repository link ARN, the associated connection ARN, encryption key ARN, and owner ID.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.codestarconnections.*;
 CfnRepositoryLink cfnRepositoryLink = CfnRepositoryLink.Builder.create(this, "MyCfnRepositoryLink")
         .connectionArn("connectionArn")
         .ownerId("ownerId")
         .repositoryName("repositoryName")
         // the properties below are optional
         .encryptionKeyArn("encryptionKeyArn")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnRepositoryLink

      protected CfnRepositoryLink(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnRepositoryLink

      protected CfnRepositoryLink(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnRepositoryLink

      @Stability(Stable) public CfnRepositoryLink(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnRepositoryLinkProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrProviderType

      @Stability(Stable) @NotNull public String getAttrProviderType()
      The name of the external provider where your third-party code repository is configured.
    • getAttrRepositoryLinkArn

      @Stability(Stable) @NotNull public String getAttrRepositoryLinkArn()
      A unique Amazon Resource Name (ARN) to designate the repository link.
    • getAttrRepositoryLinkId

      @Stability(Stable) @NotNull public String getAttrRepositoryLinkId()
      A UUID that uniquely identifies the RepositoryLink.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getConnectionArn

      @Stability(Stable) @NotNull public String getConnectionArn()
      The Amazon Resource Name (ARN) of the connection associated with the repository link.
    • setConnectionArn

      @Stability(Stable) public void setConnectionArn(@NotNull String value)
      The Amazon Resource Name (ARN) of the connection associated with the repository link.
    • getOwnerId

      @Stability(Stable) @NotNull public String getOwnerId()
      The owner ID for the repository associated with the repository link, such as the owner ID in GitHub.
    • setOwnerId

      @Stability(Stable) public void setOwnerId(@NotNull String value)
      The owner ID for the repository associated with the repository link, such as the owner ID in GitHub.
    • getRepositoryName

      @Stability(Stable) @NotNull public String getRepositoryName()
      The name of the repository associated with the repository link.
    • setRepositoryName

      @Stability(Stable) public void setRepositoryName(@NotNull String value)
      The name of the repository associated with the repository link.
    • getEncryptionKeyArn

      @Stability(Stable) @Nullable public String getEncryptionKeyArn()
      The Amazon Resource Name (ARN) of the encryption key for the repository associated with the repository link.
    • setEncryptionKeyArn

      @Stability(Stable) public void setEncryptionKeyArn(@Nullable String value)
      The Amazon Resource Name (ARN) of the encryption key for the repository associated with the repository link.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      The tags for the repository to be associated with the repository link.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      The tags for the repository to be associated with the repository link.