Interface AddLayerVersionPermissionRequest.Builder

    • Method Detail

      • layerName

        AddLayerVersionPermissionRequest.Builder layerName​(String layerName)

        The name or Amazon Resource Name (ARN) of the layer.

        Parameters:
        layerName - The name or Amazon Resource Name (ARN) of the layer.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • versionNumber

        AddLayerVersionPermissionRequest.Builder versionNumber​(Long versionNumber)

        The version number.

        Parameters:
        versionNumber - The version number.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • statementId

        AddLayerVersionPermissionRequest.Builder statementId​(String statementId)

        An identifier that distinguishes the policy from others on the same layer version.

        Parameters:
        statementId - An identifier that distinguishes the policy from others on the same layer version.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • action

        AddLayerVersionPermissionRequest.Builder action​(String action)

        The API action that grants access to the layer. For example, lambda:GetLayerVersion.

        Parameters:
        action - The API action that grants access to the layer. For example, lambda:GetLayerVersion.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • principal

        AddLayerVersionPermissionRequest.Builder principal​(String principal)

        An account ID, or * to grant layer usage permission to all accounts in an organization, or all Amazon Web Services accounts (if organizationId is not specified). For the last case, make sure that you really do want all Amazon Web Services accounts to have usage permission to this layer.

        Parameters:
        principal - An account ID, or * to grant layer usage permission to all accounts in an organization, or all Amazon Web Services accounts (if organizationId is not specified). For the last case, make sure that you really do want all Amazon Web Services accounts to have usage permission to this layer.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • organizationId

        AddLayerVersionPermissionRequest.Builder organizationId​(String organizationId)

        With the principal set to *, grant permission to all accounts in the specified organization.

        Parameters:
        organizationId - With the principal set to *, grant permission to all accounts in the specified organization.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • revisionId

        AddLayerVersionPermissionRequest.Builder revisionId​(String revisionId)

        Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.

        Parameters:
        revisionId - Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.
        Returns:
        Returns a reference to this object so that method calls can be chained together.