1. Packages
  2. Snowflake Provider
  3. API Docs
  4. getSystemGetAwsSnsIamPolicy
Snowflake v0.61.1 published on Thursday, Nov 14, 2024 by Pulumi

snowflake.getSystemGetAwsSnsIamPolicy

Explore with Pulumi AI

snowflake logo
Snowflake v0.61.1 published on Thursday, Nov 14, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as snowflake from "@pulumi/snowflake";
    
    const snowflakePolicy = snowflake.getSystemGetAwsSnsIamPolicy({
        awsSnsTopicArn: "<aws_sns_topic_arn>",
    });
    
    import pulumi
    import pulumi_snowflake as snowflake
    
    snowflake_policy = snowflake.get_system_get_aws_sns_iam_policy(aws_sns_topic_arn="<aws_sns_topic_arn>")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := snowflake.GetSystemGetAwsSnsIamPolicy(ctx, &snowflake.GetSystemGetAwsSnsIamPolicyArgs{
    			AwsSnsTopicArn: "<aws_sns_topic_arn>",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Snowflake = Pulumi.Snowflake;
    
    return await Deployment.RunAsync(() => 
    {
        var snowflakePolicy = Snowflake.GetSystemGetAwsSnsIamPolicy.Invoke(new()
        {
            AwsSnsTopicArn = "<aws_sns_topic_arn>",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.snowflake.SnowflakeFunctions;
    import com.pulumi.snowflake.inputs.GetSystemGetAwsSnsIamPolicyArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var snowflakePolicy = SnowflakeFunctions.getSystemGetAwsSnsIamPolicy(GetSystemGetAwsSnsIamPolicyArgs.builder()
                .awsSnsTopicArn("<aws_sns_topic_arn>")
                .build());
    
        }
    }
    
    variables:
      snowflakePolicy:
        fn::invoke:
          Function: snowflake:getSystemGetAwsSnsIamPolicy
          Arguments:
            awsSnsTopicArn: <aws_sns_topic_arn>
    

    Using getSystemGetAwsSnsIamPolicy

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSystemGetAwsSnsIamPolicy(args: GetSystemGetAwsSnsIamPolicyArgs, opts?: InvokeOptions): Promise<GetSystemGetAwsSnsIamPolicyResult>
    function getSystemGetAwsSnsIamPolicyOutput(args: GetSystemGetAwsSnsIamPolicyOutputArgs, opts?: InvokeOptions): Output<GetSystemGetAwsSnsIamPolicyResult>
    def get_system_get_aws_sns_iam_policy(aws_sns_topic_arn: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetSystemGetAwsSnsIamPolicyResult
    def get_system_get_aws_sns_iam_policy_output(aws_sns_topic_arn: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetSystemGetAwsSnsIamPolicyResult]
    func GetSystemGetAwsSnsIamPolicy(ctx *Context, args *GetSystemGetAwsSnsIamPolicyArgs, opts ...InvokeOption) (*GetSystemGetAwsSnsIamPolicyResult, error)
    func GetSystemGetAwsSnsIamPolicyOutput(ctx *Context, args *GetSystemGetAwsSnsIamPolicyOutputArgs, opts ...InvokeOption) GetSystemGetAwsSnsIamPolicyResultOutput

    > Note: This function is named GetSystemGetAwsSnsIamPolicy in the Go SDK.

    public static class GetSystemGetAwsSnsIamPolicy 
    {
        public static Task<GetSystemGetAwsSnsIamPolicyResult> InvokeAsync(GetSystemGetAwsSnsIamPolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetSystemGetAwsSnsIamPolicyResult> Invoke(GetSystemGetAwsSnsIamPolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSystemGetAwsSnsIamPolicyResult> getSystemGetAwsSnsIamPolicy(GetSystemGetAwsSnsIamPolicyArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: snowflake:index/getSystemGetAwsSnsIamPolicy:getSystemGetAwsSnsIamPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AwsSnsTopicArn string
    Amazon Resource Name (ARN) of the SNS topic for your S3 bucket
    AwsSnsTopicArn string
    Amazon Resource Name (ARN) of the SNS topic for your S3 bucket
    awsSnsTopicArn String
    Amazon Resource Name (ARN) of the SNS topic for your S3 bucket
    awsSnsTopicArn string
    Amazon Resource Name (ARN) of the SNS topic for your S3 bucket
    aws_sns_topic_arn str
    Amazon Resource Name (ARN) of the SNS topic for your S3 bucket
    awsSnsTopicArn String
    Amazon Resource Name (ARN) of the SNS topic for your S3 bucket

    getSystemGetAwsSnsIamPolicy Result

    The following output properties are available:

    AwsSnsTopicArn string
    Amazon Resource Name (ARN) of the SNS topic for your S3 bucket
    AwsSnsTopicPolicyJson string
    IAM policy for Snowflake’s SQS queue to subscribe to this topic
    Id string
    The provider-assigned unique ID for this managed resource.
    AwsSnsTopicArn string
    Amazon Resource Name (ARN) of the SNS topic for your S3 bucket
    AwsSnsTopicPolicyJson string
    IAM policy for Snowflake’s SQS queue to subscribe to this topic
    Id string
    The provider-assigned unique ID for this managed resource.
    awsSnsTopicArn String
    Amazon Resource Name (ARN) of the SNS topic for your S3 bucket
    awsSnsTopicPolicyJson String
    IAM policy for Snowflake’s SQS queue to subscribe to this topic
    id String
    The provider-assigned unique ID for this managed resource.
    awsSnsTopicArn string
    Amazon Resource Name (ARN) of the SNS topic for your S3 bucket
    awsSnsTopicPolicyJson string
    IAM policy for Snowflake’s SQS queue to subscribe to this topic
    id string
    The provider-assigned unique ID for this managed resource.
    aws_sns_topic_arn str
    Amazon Resource Name (ARN) of the SNS topic for your S3 bucket
    aws_sns_topic_policy_json str
    IAM policy for Snowflake’s SQS queue to subscribe to this topic
    id str
    The provider-assigned unique ID for this managed resource.
    awsSnsTopicArn String
    Amazon Resource Name (ARN) of the SNS topic for your S3 bucket
    awsSnsTopicPolicyJson String
    IAM policy for Snowflake’s SQS queue to subscribe to this topic
    id String
    The provider-assigned unique ID for this managed resource.

    Package Details

    Repository
    Snowflake pulumi/pulumi-snowflake
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the snowflake Terraform Provider.
    snowflake logo
    Snowflake v0.61.1 published on Thursday, Nov 14, 2024 by Pulumi