1. Packages
  2. AWS
  3. API Docs
  4. connect
  5. getSecurityProfile
AWS v6.55.0 published on Monday, Oct 7, 2024 by Pulumi

aws.connect.getSecurityProfile

Explore with Pulumi AI

aws logo
AWS v6.55.0 published on Monday, Oct 7, 2024 by Pulumi

    Provides details about a specific Amazon Connect Security Profile.

    Example Usage

    By name

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.connect.getSecurityProfile({
        instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
        name: "Example",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.connect.get_security_profile(instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
        name="Example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/connect"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := connect.LookupSecurityProfile(ctx, &connect.LookupSecurityProfileArgs{
    			InstanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
    			Name:       pulumi.StringRef("Example"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.Connect.GetSecurityProfile.Invoke(new()
        {
            InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
            Name = "Example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.connect.ConnectFunctions;
    import com.pulumi.aws.connect.inputs.GetSecurityProfileArgs;
    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 example = ConnectFunctions.getSecurityProfile(GetSecurityProfileArgs.builder()
                .instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
                .name("Example")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:connect:getSecurityProfile
          Arguments:
            instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
            name: Example
    

    By security_profile_id

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.connect.getSecurityProfile({
        instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
        securityProfileId: "cccccccc-bbbb-cccc-dddd-111111111111",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.connect.get_security_profile(instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
        security_profile_id="cccccccc-bbbb-cccc-dddd-111111111111")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/connect"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := connect.LookupSecurityProfile(ctx, &connect.LookupSecurityProfileArgs{
    			InstanceId:        "aaaaaaaa-bbbb-cccc-dddd-111111111111",
    			SecurityProfileId: pulumi.StringRef("cccccccc-bbbb-cccc-dddd-111111111111"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.Connect.GetSecurityProfile.Invoke(new()
        {
            InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
            SecurityProfileId = "cccccccc-bbbb-cccc-dddd-111111111111",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.connect.ConnectFunctions;
    import com.pulumi.aws.connect.inputs.GetSecurityProfileArgs;
    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 example = ConnectFunctions.getSecurityProfile(GetSecurityProfileArgs.builder()
                .instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
                .securityProfileId("cccccccc-bbbb-cccc-dddd-111111111111")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:connect:getSecurityProfile
          Arguments:
            instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
            securityProfileId: cccccccc-bbbb-cccc-dddd-111111111111
    

    Using getSecurityProfile

    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 getSecurityProfile(args: GetSecurityProfileArgs, opts?: InvokeOptions): Promise<GetSecurityProfileResult>
    function getSecurityProfileOutput(args: GetSecurityProfileOutputArgs, opts?: InvokeOptions): Output<GetSecurityProfileResult>
    def get_security_profile(instance_id: Optional[str] = None,
                             name: Optional[str] = None,
                             security_profile_id: Optional[str] = None,
                             tags: Optional[Mapping[str, str]] = None,
                             opts: Optional[InvokeOptions] = None) -> GetSecurityProfileResult
    def get_security_profile_output(instance_id: Optional[pulumi.Input[str]] = None,
                             name: Optional[pulumi.Input[str]] = None,
                             security_profile_id: Optional[pulumi.Input[str]] = None,
                             tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetSecurityProfileResult]
    func LookupSecurityProfile(ctx *Context, args *LookupSecurityProfileArgs, opts ...InvokeOption) (*LookupSecurityProfileResult, error)
    func LookupSecurityProfileOutput(ctx *Context, args *LookupSecurityProfileOutputArgs, opts ...InvokeOption) LookupSecurityProfileResultOutput

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

    public static class GetSecurityProfile 
    {
        public static Task<GetSecurityProfileResult> InvokeAsync(GetSecurityProfileArgs args, InvokeOptions? opts = null)
        public static Output<GetSecurityProfileResult> Invoke(GetSecurityProfileInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecurityProfileResult> getSecurityProfile(GetSecurityProfileArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:connect/getSecurityProfile:getSecurityProfile
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    Reference to the hosting Amazon Connect Instance
    Name string
    Returns information on a specific Security Profile by name
    SecurityProfileId string
    Returns information on a specific Security Profile by Security Profile id
    Tags Dictionary<string, string>
    Map of tags to assign to the Security Profile.
    InstanceId string
    Reference to the hosting Amazon Connect Instance
    Name string
    Returns information on a specific Security Profile by name
    SecurityProfileId string
    Returns information on a specific Security Profile by Security Profile id
    Tags map[string]string
    Map of tags to assign to the Security Profile.
    instanceId String
    Reference to the hosting Amazon Connect Instance
    name String
    Returns information on a specific Security Profile by name
    securityProfileId String
    Returns information on a specific Security Profile by Security Profile id
    tags Map<String,String>
    Map of tags to assign to the Security Profile.
    instanceId string
    Reference to the hosting Amazon Connect Instance
    name string
    Returns information on a specific Security Profile by name
    securityProfileId string
    Returns information on a specific Security Profile by Security Profile id
    tags {[key: string]: string}
    Map of tags to assign to the Security Profile.
    instance_id str
    Reference to the hosting Amazon Connect Instance
    name str
    Returns information on a specific Security Profile by name
    security_profile_id str
    Returns information on a specific Security Profile by Security Profile id
    tags Mapping[str, str]
    Map of tags to assign to the Security Profile.
    instanceId String
    Reference to the hosting Amazon Connect Instance
    name String
    Returns information on a specific Security Profile by name
    securityProfileId String
    Returns information on a specific Security Profile by Security Profile id
    tags Map<String>
    Map of tags to assign to the Security Profile.

    getSecurityProfile Result

    The following output properties are available:

    Arn string
    ARN of the Security Profile.
    Description string
    Description of the Security Profile.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    Name string
    OrganizationResourceId string
    The organization resource identifier for the security profile.
    Permissions List<string>
    List of permissions assigned to the security profile.
    SecurityProfileId string
    Tags Dictionary<string, string>
    Map of tags to assign to the Security Profile.
    Arn string
    ARN of the Security Profile.
    Description string
    Description of the Security Profile.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    Name string
    OrganizationResourceId string
    The organization resource identifier for the security profile.
    Permissions []string
    List of permissions assigned to the security profile.
    SecurityProfileId string
    Tags map[string]string
    Map of tags to assign to the Security Profile.
    arn String
    ARN of the Security Profile.
    description String
    Description of the Security Profile.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    name String
    organizationResourceId String
    The organization resource identifier for the security profile.
    permissions List<String>
    List of permissions assigned to the security profile.
    securityProfileId String
    tags Map<String,String>
    Map of tags to assign to the Security Profile.
    arn string
    ARN of the Security Profile.
    description string
    Description of the Security Profile.
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId string
    name string
    organizationResourceId string
    The organization resource identifier for the security profile.
    permissions string[]
    List of permissions assigned to the security profile.
    securityProfileId string
    tags {[key: string]: string}
    Map of tags to assign to the Security Profile.
    arn str
    ARN of the Security Profile.
    description str
    Description of the Security Profile.
    id str
    The provider-assigned unique ID for this managed resource.
    instance_id str
    name str
    organization_resource_id str
    The organization resource identifier for the security profile.
    permissions Sequence[str]
    List of permissions assigned to the security profile.
    security_profile_id str
    tags Mapping[str, str]
    Map of tags to assign to the Security Profile.
    arn String
    ARN of the Security Profile.
    description String
    Description of the Security Profile.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    name String
    organizationResourceId String
    The organization resource identifier for the security profile.
    permissions List<String>
    List of permissions assigned to the security profile.
    securityProfileId String
    tags Map<String>
    Map of tags to assign to the Security Profile.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.55.0 published on Monday, Oct 7, 2024 by Pulumi