aws.connect.SecurityProfile
Explore with Pulumi AI
Provides an Amazon Connect Security Profile resource. For more information see Amazon Connect: Getting Started
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.connect.SecurityProfile("example", {
instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
name: "example",
description: "example description",
permissions: [
"BasicAgentAccess",
"OutboundCallAccess",
],
tags: {
Name: "Example Security Profile",
},
});
import pulumi
import pulumi_aws as aws
example = aws.connect.SecurityProfile("example",
instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
name="example",
description="example description",
permissions=[
"BasicAgentAccess",
"OutboundCallAccess",
],
tags={
"Name": "Example Security Profile",
})
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.NewSecurityProfile(ctx, "example", &connect.SecurityProfileArgs{
InstanceId: pulumi.String("aaaaaaaa-bbbb-cccc-dddd-111111111111"),
Name: pulumi.String("example"),
Description: pulumi.String("example description"),
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
})
}
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()
{
InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
Name = "example",
Description = "example description",
Permissions = new[]
{
"BasicAgentAccess",
"OutboundCallAccess",
},
Tags =
{
{ "Name", "Example Security Profile" },
},
});
});
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()
.instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
.name("example")
.description("example description")
.permissions(
"BasicAgentAccess",
"OutboundCallAccess")
.tags(Map.of("Name", "Example Security Profile"))
.build());
}
}
resources:
example:
type: aws:connect:SecurityProfile
properties:
instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
name: example
description: example description
permissions:
- BasicAgentAccess
- OutboundCallAccess
tags:
Name: Example Security Profile
Create SecurityProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecurityProfile(name: string, args: SecurityProfileArgs, opts?: CustomResourceOptions);
@overload
def SecurityProfile(resource_name: str,
args: SecurityProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecurityProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
permissions: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var securityProfileResource = new Aws.Connect.SecurityProfile("securityProfileResource", new()
{
InstanceId = "string",
Description = "string",
Name = "string",
Permissions = new[]
{
"string",
},
Tags =
{
{ "string", "string" },
},
});
example, err := connect.NewSecurityProfile(ctx, "securityProfileResource", &connect.SecurityProfileArgs{
InstanceId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Permissions: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var securityProfileResource = new SecurityProfile("securityProfileResource", SecurityProfileArgs.builder()
.instanceId("string")
.description("string")
.name("string")
.permissions("string")
.tags(Map.of("string", "string"))
.build());
security_profile_resource = aws.connect.SecurityProfile("securityProfileResource",
instance_id="string",
description="string",
name="string",
permissions=["string"],
tags={
"string": "string",
})
const securityProfileResource = new aws.connect.SecurityProfile("securityProfileResource", {
instanceId: "string",
description: "string",
name: "string",
permissions: ["string"],
tags: {
string: "string",
},
});
type: aws:connect:SecurityProfile
properties:
description: string
instanceId: string
name: string
permissions:
- string
tags:
string: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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
Using pulumi import
, import Amazon Connect Security Profiles using the instance_id
and security_profile_id
separated by a colon (:
). For example:
$ pulumi import aws:connect/securityProfile:SecurityProfile example f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.