Class CodeArtifactOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.javascript.CodeArtifactOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeArtifactOptions>
- Enclosing interface:
- CodeArtifactOptions
@Stability(Experimental) public static final class CodeArtifactOptions.Builder extends Object implements software.amazon.jsii.Builder<CodeArtifactOptions>
A builder forCodeArtifactOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CodeArtifactOptions.BuilderaccessKeyIdSecret(String accessKeyIdSecret)Sets the value ofCodeArtifactOptions.getAccessKeyIdSecret()CodeArtifactOptions.BuilderauthProvider(CodeArtifactAuthProvider authProvider)Sets the value ofCodeArtifactOptions.getAuthProvider()CodeArtifactOptionsbuild()Builds the configured instance.CodeArtifactOptions.BuilderroleToAssume(String roleToAssume)Sets the value ofCodeArtifactOptions.getRoleToAssume()CodeArtifactOptions.BuildersecretAccessKeySecret(String secretAccessKeySecret)Sets the value ofCodeArtifactOptions.getSecretAccessKeySecret()
-
-
-
Method Detail
-
accessKeyIdSecret
@Stability(Experimental) public CodeArtifactOptions.Builder accessKeyIdSecret(String accessKeyIdSecret)
Sets the value ofCodeArtifactOptions.getAccessKeyIdSecret()- Parameters:
accessKeyIdSecret- GitHub secret which contains the AWS access key ID to use when publishing packages to AWS CodeArtifact. This property must be specified only when publishing to AWS CodeArtifact (npmRegistryUrlcontains AWS CodeArtifact URL).- Returns:
this
-
authProvider
@Stability(Experimental) public CodeArtifactOptions.Builder authProvider(CodeArtifactAuthProvider authProvider)
Sets the value ofCodeArtifactOptions.getAuthProvider()- Parameters:
authProvider- Provider to use for authorizing requests to AWS CodeArtifact.- Returns:
this
-
roleToAssume
@Stability(Experimental) public CodeArtifactOptions.Builder roleToAssume(String roleToAssume)
Sets the value ofCodeArtifactOptions.getRoleToAssume()- Parameters:
roleToAssume- ARN of AWS role to be assumed prior to get authorization token from AWS CodeArtifact This property must be specified only when publishing to AWS CodeArtifact (registrycontains AWS CodeArtifact URL). When using theCodeArtifactAuthProvider.GITHUB_OIDCauth provider, this value must be defined.- Returns:
this
-
secretAccessKeySecret
@Stability(Experimental) public CodeArtifactOptions.Builder secretAccessKeySecret(String secretAccessKeySecret)
Sets the value ofCodeArtifactOptions.getSecretAccessKeySecret()- Parameters:
secretAccessKeySecret- GitHub secret which contains the AWS secret access key to use when publishing packages to AWS CodeArtifact. This property must be specified only when publishing to AWS CodeArtifact (npmRegistryUrlcontains AWS CodeArtifact URL).- Returns:
this
-
build
@Stability(Experimental) public CodeArtifactOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CodeArtifactOptions>- Returns:
- a new instance of
CodeArtifactOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-