AWS v6.55.0 published on Monday, Oct 7, 2024 by Pulumi
aws.connect.getSecurityProfile
Explore with Pulumi AI
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:
- Instance
Id string - Reference to the hosting Amazon Connect Instance
- Name string
- Returns information on a specific Security Profile by name
- Security
Profile stringId - Returns information on a specific Security Profile by Security Profile id
- Dictionary<string, string>
- Map of tags to assign to the Security Profile.
- Instance
Id string - Reference to the hosting Amazon Connect Instance
- Name string
- Returns information on a specific Security Profile by name
- Security
Profile stringId - Returns information on a specific Security Profile by Security Profile id
- map[string]string
- Map of tags to assign to the Security Profile.
- instance
Id String - Reference to the hosting Amazon Connect Instance
- name String
- Returns information on a specific Security Profile by name
- security
Profile StringId - Returns information on a specific Security Profile by Security Profile id
- Map<String,String>
- Map of tags to assign to the Security Profile.
- instance
Id string - Reference to the hosting Amazon Connect Instance
- name string
- Returns information on a specific Security Profile by name
- security
Profile stringId - Returns information on a specific Security Profile by Security Profile id
- {[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_ strid - Returns information on a specific Security Profile by Security Profile id
- Mapping[str, str]
- Map of tags to assign to the Security Profile.
- instance
Id String - Reference to the hosting Amazon Connect Instance
- name String
- Returns information on a specific Security Profile by name
- security
Profile StringId - Returns information on a specific Security Profile by Security Profile id
- 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.
- Instance
Id string - Name string
- Organization
Resource stringId - The organization resource identifier for the security profile.
- Permissions List<string>
- List of permissions assigned to the security profile.
- Security
Profile stringId - 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.
- Instance
Id string - Name string
- Organization
Resource stringId - The organization resource identifier for the security profile.
- Permissions []string
- List of permissions assigned to the security profile.
- Security
Profile stringId - 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.
- instance
Id String - name String
- organization
Resource StringId - The organization resource identifier for the security profile.
- permissions List<String>
- List of permissions assigned to the security profile.
- security
Profile StringId - 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.
- instance
Id string - name string
- organization
Resource stringId - The organization resource identifier for the security profile.
- permissions string[]
- List of permissions assigned to the security profile.
- security
Profile stringId - {[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_ strid - The organization resource identifier for the security profile.
- permissions Sequence[str]
- List of permissions assigned to the security profile.
- security_
profile_ strid - 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.
- instance
Id String - name String
- organization
Resource StringId - The organization resource identifier for the security profile.
- permissions List<String>
- List of permissions assigned to the security profile.
- security
Profile StringId - 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.