All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.cdklabs.awscdk.appsync.utils.SourceApiAssociationMergeOperationProvider Maven / Gradle / Ivy

There is a newer version: 0.0.579
Show newest version
package io.github.cdklabs.awscdk.appsync.utils;

/**
 * SourceApiAssociationMergeProvider class is responsible for constructing the custom resource that will be used for initiating the source API merge during a Cloudformation update.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-28T00:18:00.323Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = io.github.cdklabs.awscdk.appsync.utils.$Module.class, fqn = "awscdk-appsync-utils.SourceApiAssociationMergeOperationProvider")
public class SourceApiAssociationMergeOperationProvider extends software.constructs.Construct implements io.github.cdklabs.awscdk.appsync.utils.ISourceApiAssociationMergeOperationProvider {

    protected SourceApiAssociationMergeOperationProvider(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected SourceApiAssociationMergeOperationProvider(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    /**
     * @param scope This parameter is required.
     * @param id This parameter is required.
     * @param props This parameter is required.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public SourceApiAssociationMergeOperationProvider(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull io.github.cdklabs.awscdk.appsync.utils.SourceApiAssociationMergeOperationProviderProps props) {
        super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") });
    }

    /**
     * This function associates a source api association with the provider.
     * 

* This method can be used for adding permissions to merge a specific source api association to the custom resource provider. *

* @param sourceApiAssociation This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public void associateSourceApiAssociation(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appsync.ISourceApiAssociation sourceApiAssociation) { software.amazon.jsii.Kernel.call(this, "associateSourceApiAssociation", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(sourceApiAssociation, "sourceApiAssociation is required") }); } /** * The lambda function responsible for kicking off the merge operation. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.lambda.SingletonFunction getSchemaMergeLambda() { return software.amazon.jsii.Kernel.get(this, "schemaMergeLambda", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.lambda.SingletonFunction.class)); } /** * Service token for the resource provider. */ @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getServiceToken() { return software.amazon.jsii.Kernel.get(this, "serviceToken", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The lambda function response for ensuring that the merge operation finished. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.lambda.SingletonFunction getSourceApiStablizationLambda() { return software.amazon.jsii.Kernel.get(this, "sourceApiStablizationLambda", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.lambda.SingletonFunction.class)); } /** * A fluent builder for {@link io.github.cdklabs.awscdk.appsync.utils.SourceApiAssociationMergeOperationProvider}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param scope This parameter is required. * @param id This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static Builder create(final software.constructs.Construct scope, final java.lang.String id) { return new Builder(scope, id); } private final software.constructs.Construct scope; private final java.lang.String id; private final io.github.cdklabs.awscdk.appsync.utils.SourceApiAssociationMergeOperationProviderProps.Builder props; private Builder(final software.constructs.Construct scope, final java.lang.String id) { this.scope = scope; this.id = id; this.props = new io.github.cdklabs.awscdk.appsync.utils.SourceApiAssociationMergeOperationProviderProps.Builder(); } /** * Time between calls to the polling Lambda function which determines whether the merge operation is finished or not. *

* Default: Duration.seconds(5) *

* @return {@code this} * @param pollingInterval Time between calls to the polling Lambda function which determines whether the merge operation is finished or not. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder pollingInterval(final software.amazon.awscdk.Duration pollingInterval) { this.props.pollingInterval(pollingInterval); return this; } /** * Total timeout in waiting for the source api association merge operation to complete. *

* Default: Duration.minutes(15) *

* @return {@code this} * @param totalTimeout Total timeout in waiting for the source api association merge operation to complete. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder totalTimeout(final software.amazon.awscdk.Duration totalTimeout) { this.props.totalTimeout(totalTimeout); return this; } /** * @return a newly built instance of {@link io.github.cdklabs.awscdk.appsync.utils.SourceApiAssociationMergeOperationProvider}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public io.github.cdklabs.awscdk.appsync.utils.SourceApiAssociationMergeOperationProvider build() { return new io.github.cdklabs.awscdk.appsync.utils.SourceApiAssociationMergeOperationProvider( this.scope, this.id, this.props.build() ); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy