AWS Classic v5.41.0, May 15 23
AWS Classic v5.41.0, May 15 23
aws.connect.SecurityProfile
Explore with Pulumi AI
Provides an Amazon Connect Security Profile resource. For more information see Amazon Connect: Getting Started
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Connect.SecurityProfile("example", new()
{
Description = "example description",
InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
Permissions = new[]
{
"BasicAgentAccess",
"OutboundCallAccess",
},
Tags =
{
{ "Name", "Example Security Profile" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/connect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := connect.NewSecurityProfile(ctx, "example", &connect.SecurityProfileArgs{
Description: pulumi.String("example description"),
InstanceId: pulumi.String("aaaaaaaa-bbbb-cccc-dddd-111111111111"),
Permissions: pulumi.StringArray{
pulumi.String("BasicAgentAccess"),
pulumi.String("OutboundCallAccess"),
},
Tags: pulumi.StringMap{
"Name": pulumi.String("Example Security Profile"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.SecurityProfile;
import com.pulumi.aws.connect.SecurityProfileArgs;
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) {
var example = new SecurityProfile("example", SecurityProfileArgs.builder()
.description("example description")
.instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
.permissions(
"BasicAgentAccess",
"OutboundCallAccess")
.tags(Map.of("Name", "Example Security Profile"))
.build());
}
}
import pulumi
import pulumi_aws as aws
example = aws.connect.SecurityProfile("example",
description="example description",
instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
permissions=[
"BasicAgentAccess",
"OutboundCallAccess",
],
tags={
"Name": "Example Security Profile",
})
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.connect.SecurityProfile("example", {
description: "example description",
instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
permissions: [
"BasicAgentAccess",
"OutboundCallAccess",
],
tags: {
Name: "Example Security Profile",
},
});
resources:
example:
type: aws:connect:SecurityProfile
properties:
description: example description
instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
permissions:
- BasicAgentAccess
- OutboundCallAccess
tags:
Name: Example Security Profile
Create SecurityProfile Resource
new SecurityProfile(name: string, args: SecurityProfileArgs, opts?: CustomResourceOptions);
@overload
def SecurityProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
instance_id: Optional[str] = None,
name: Optional[str] = None,
permissions: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None)
@overload
def SecurityProfile(resource_name: str,
args: SecurityProfileArgs,
opts: Optional[ResourceOptions] = None)
func NewSecurityProfile(ctx *Context, name string, args SecurityProfileArgs, opts ...ResourceOption) (*SecurityProfile, error)
public SecurityProfile(string name, SecurityProfileArgs args, CustomResourceOptions? opts = null)
public SecurityProfile(String name, SecurityProfileArgs args)
public SecurityProfile(String name, SecurityProfileArgs args, CustomResourceOptions options)
type: aws:connect:SecurityProfile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurityProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SecurityProfileArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SecurityProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurityProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecurityProfileArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
SecurityProfile Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The SecurityProfile resource accepts the following input properties:
- Instance
Id string Specifies the identifier of the hosting Amazon Connect Instance.
- Description string
Specifies the description of the Security Profile.
- Name string
Specifies the name of the Security Profile.
- Permissions List<string>
Specifies a list of permissions assigned to the security profile.
- Dictionary<string, string>
Tags to apply to the Security Profile. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Instance
Id string Specifies the identifier of the hosting Amazon Connect Instance.
- Description string
Specifies the description of the Security Profile.
- Name string
Specifies the name of the Security Profile.
- Permissions []string
Specifies a list of permissions assigned to the security profile.
- map[string]string
Tags to apply to the Security Profile. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- instance
Id String Specifies the identifier of the hosting Amazon Connect Instance.
- description String
Specifies the description of the Security Profile.
- name String
Specifies the name of the Security Profile.
- permissions List<String>
Specifies a list of permissions assigned to the security profile.
- Map<String,String>
Tags to apply to the Security Profile. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- instance
Id string Specifies the identifier of the hosting Amazon Connect Instance.
- description string
Specifies the description of the Security Profile.
- name string
Specifies the name of the Security Profile.
- permissions string[]
Specifies a list of permissions assigned to the security profile.
- {[key: string]: string}
Tags to apply to the Security Profile. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- instance_
id str Specifies the identifier of the hosting Amazon Connect Instance.
- description str
Specifies the description of the Security Profile.
- name str
Specifies the name of the Security Profile.
- permissions Sequence[str]
Specifies a list of permissions assigned to the security profile.
- Mapping[str, str]
Tags to apply to the Security Profile. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- instance
Id String Specifies the identifier of the hosting Amazon Connect Instance.
- description String
Specifies the description of the Security Profile.
- name String
Specifies the name of the Security Profile.
- permissions List<String>
Specifies a list of permissions assigned to the security profile.
- Map<String>
Tags to apply to the Security Profile. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityProfile resource produces the following output properties:
- Arn string
The Amazon Resource Name (ARN) of the Security Profile.
- Id string
The provider-assigned unique ID for this managed resource.
- Organization
Resource stringId The organization resource identifier for the security profile.
- Security
Profile stringId The identifier for the Security Profile.
- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
The Amazon Resource Name (ARN) of the Security Profile.
- Id string
The provider-assigned unique ID for this managed resource.
- Organization
Resource stringId The organization resource identifier for the security profile.
- Security
Profile stringId The identifier for the Security Profile.
- map[string]string
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
The Amazon Resource Name (ARN) of the Security Profile.
- id String
The provider-assigned unique ID for this managed resource.
- organization
Resource StringId The organization resource identifier for the security profile.
- security
Profile StringId The identifier for the Security Profile.
- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
The Amazon Resource Name (ARN) of the Security Profile.
- id string
The provider-assigned unique ID for this managed resource.
- organization
Resource stringId The organization resource identifier for the security profile.
- security
Profile stringId The identifier for the Security Profile.
- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
The Amazon Resource Name (ARN) of the Security Profile.
- id str
The provider-assigned unique ID for this managed resource.
- organization_
resource_ strid The organization resource identifier for the security profile.
- security_
profile_ strid The identifier for the Security Profile.
- Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
The Amazon Resource Name (ARN) of the Security Profile.
- id String
The provider-assigned unique ID for this managed resource.
- organization
Resource StringId The organization resource identifier for the security profile.
- security
Profile StringId The identifier for the Security Profile.
- Map<String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing SecurityProfile Resource
Get an existing SecurityProfile resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SecurityProfileState, opts?: CustomResourceOptions): SecurityProfile
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
description: Optional[str] = None,
instance_id: Optional[str] = None,
name: Optional[str] = None,
organization_resource_id: Optional[str] = None,
permissions: Optional[Sequence[str]] = None,
security_profile_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> SecurityProfile
func GetSecurityProfile(ctx *Context, name string, id IDInput, state *SecurityProfileState, opts ...ResourceOption) (*SecurityProfile, error)
public static SecurityProfile Get(string name, Input<string> id, SecurityProfileState? state, CustomResourceOptions? opts = null)
public static SecurityProfile get(String name, Output<String> id, SecurityProfileState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
The Amazon Resource Name (ARN) of the Security Profile.
- Description string
Specifies the description of the Security Profile.
- Instance
Id string Specifies the identifier of the hosting Amazon Connect Instance.
- Name string
Specifies the name of the Security Profile.
- Organization
Resource stringId The organization resource identifier for the security profile.
- Permissions List<string>
Specifies a list of permissions assigned to the security profile.
- Security
Profile stringId The identifier for the Security Profile.
- Dictionary<string, string>
Tags to apply to the Security Profile. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
The Amazon Resource Name (ARN) of the Security Profile.
- Description string
Specifies the description of the Security Profile.
- Instance
Id string Specifies the identifier of the hosting Amazon Connect Instance.
- Name string
Specifies the name of the Security Profile.
- Organization
Resource stringId The organization resource identifier for the security profile.
- Permissions []string
Specifies a list of permissions assigned to the security profile.
- Security
Profile stringId The identifier for the Security Profile.
- map[string]string
Tags to apply to the Security Profile. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- map[string]string
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
The Amazon Resource Name (ARN) of the Security Profile.
- description String
Specifies the description of the Security Profile.
- instance
Id String Specifies the identifier of the hosting Amazon Connect Instance.
- name String
Specifies the name of the Security Profile.
- organization
Resource StringId The organization resource identifier for the security profile.
- permissions List<String>
Specifies a list of permissions assigned to the security profile.
- security
Profile StringId The identifier for the Security Profile.
- Map<String,String>
Tags to apply to the Security Profile. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
The Amazon Resource Name (ARN) of the Security Profile.
- description string
Specifies the description of the Security Profile.
- instance
Id string Specifies the identifier of the hosting Amazon Connect Instance.
- name string
Specifies the name of the Security Profile.
- organization
Resource stringId The organization resource identifier for the security profile.
- permissions string[]
Specifies a list of permissions assigned to the security profile.
- security
Profile stringId The identifier for the Security Profile.
- {[key: string]: string}
Tags to apply to the Security Profile. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
The Amazon Resource Name (ARN) of the Security Profile.
- description str
Specifies the description of the Security Profile.
- instance_
id str Specifies the identifier of the hosting Amazon Connect Instance.
- name str
Specifies the name of the Security Profile.
- organization_
resource_ strid The organization resource identifier for the security profile.
- permissions Sequence[str]
Specifies a list of permissions assigned to the security profile.
- security_
profile_ strid The identifier for the Security Profile.
- Mapping[str, str]
Tags to apply to the Security Profile. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
The Amazon Resource Name (ARN) of the Security Profile.
- description String
Specifies the description of the Security Profile.
- instance
Id String Specifies the identifier of the hosting Amazon Connect Instance.
- name String
Specifies the name of the Security Profile.
- organization
Resource StringId The organization resource identifier for the security profile.
- permissions List<String>
Specifies a list of permissions assigned to the security profile.
- security
Profile StringId The identifier for the Security Profile.
- Map<String>
Tags to apply to the Security Profile. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Map<String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Import
Amazon Connect Security Profiles can be imported using the instance_id
and security_profile_id
separated by a colon (:
), e.g.,
$ pulumi import aws:connect/securityProfile:SecurityProfile example f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.