We recommend new projects start with resources from the AWS provider.
aws-native.connect.ApprovedOrigin
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::Connect::ApprovedOrigin
Example Usage
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var approvedOrigin = new AwsNative.Connect.ApprovedOrigin("approvedOrigin", new()
{
InstanceId = "arn:aws:connect:region-name:aws-account-id:instance/instance-arn",
Origin = "https://aws.amazon.com",
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/connect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := connect.NewApprovedOrigin(ctx, "approvedOrigin", &connect.ApprovedOriginArgs{
InstanceId: pulumi.String("arn:aws:connect:region-name:aws-account-id:instance/instance-arn"),
Origin: pulumi.String("https://aws.amazon.com"),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
approved_origin = aws_native.connect.ApprovedOrigin("approvedOrigin",
instance_id="arn:aws:connect:region-name:aws-account-id:instance/instance-arn",
origin="https://aws.amazon.com")
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const approvedOrigin = new aws_native.connect.ApprovedOrigin("approvedOrigin", {
instanceId: "arn:aws:connect:region-name:aws-account-id:instance/instance-arn",
origin: "https://aws.amazon.com",
});
Coming soon!
Create ApprovedOrigin Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApprovedOrigin(name: string, args: ApprovedOriginArgs, opts?: CustomResourceOptions);
@overload
def ApprovedOrigin(resource_name: str,
args: ApprovedOriginArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApprovedOrigin(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
origin: Optional[str] = None)
func NewApprovedOrigin(ctx *Context, name string, args ApprovedOriginArgs, opts ...ResourceOption) (*ApprovedOrigin, error)
public ApprovedOrigin(string name, ApprovedOriginArgs args, CustomResourceOptions? opts = null)
public ApprovedOrigin(String name, ApprovedOriginArgs args)
public ApprovedOrigin(String name, ApprovedOriginArgs args, CustomResourceOptions options)
type: aws-native:connect:ApprovedOrigin
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 ApprovedOriginArgs
- 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 ApprovedOriginArgs
- 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 ApprovedOriginArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApprovedOriginArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApprovedOriginArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ApprovedOrigin 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 ApprovedOrigin resource accepts the following input properties:
- Instance
Id string The Amazon Resource Name (ARN) of the instance.
Minimum :
1
Maximum :
100
- Origin string
Domain name to be added to the allow-list of the instance.
Maximum :
267
- Instance
Id string The Amazon Resource Name (ARN) of the instance.
Minimum :
1
Maximum :
100
- Origin string
Domain name to be added to the allow-list of the instance.
Maximum :
267
- instance
Id String The Amazon Resource Name (ARN) of the instance.
Minimum :
1
Maximum :
100
- origin String
Domain name to be added to the allow-list of the instance.
Maximum :
267
- instance
Id string The Amazon Resource Name (ARN) of the instance.
Minimum :
1
Maximum :
100
- origin string
Domain name to be added to the allow-list of the instance.
Maximum :
267
- instance_
id str The Amazon Resource Name (ARN) of the instance.
Minimum :
1
Maximum :
100
- origin str
Domain name to be added to the allow-list of the instance.
Maximum :
267
- instance
Id String The Amazon Resource Name (ARN) of the instance.
Minimum :
1
Maximum :
100
- origin String
Domain name to be added to the allow-list of the instance.
Maximum :
267
Outputs
All input properties are implicitly available as output properties. Additionally, the ApprovedOrigin resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.