Class Activation
Registers an on-premises server or virtual machine with Amazon EC2 so that it can be managed using Run Command.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var testRole = new Aws.Iam.Role("testRole", new Aws.Iam.RoleArgs
{
AssumeRolePolicy = @" {
""Version"": ""2012-10-17"",
""Statement"": {
""Effect"": ""Allow"",
""Principal"": {""Service"": ""ssm.amazonaws.com""},
""Action"": ""sts:AssumeRole""
}
}
",
});
var testAttach = new Aws.Iam.RolePolicyAttachment("testAttach", new Aws.Iam.RolePolicyAttachmentArgs
{
PolicyArn = "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore",
Role = testRole.Name,
});
var foo = new Aws.Ssm.Activation("foo", new Aws.Ssm.ActivationArgs
{
Description = "Test",
IamRole = testRole.Id,
RegistrationLimit = "5",
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Ssm
Assembly: Pulumi.Aws.dll
Syntax
public class Activation : CustomResource
Constructors
View SourceActivation(String, ActivationArgs, CustomResourceOptions)
Create a Activation resource with the given unique name, arguments, and options.
Declaration
public Activation(string name, ActivationArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ActivationArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceActivationCode
The code the system generates when it processes the activation.
Declaration
public Output<string> ActivationCode { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Description
The description of the resource that you want to register.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ExpirationDate
UTC timestamp in RFC3339 format by which this activation request should expire. The default value is 24 hours from resource creation time. This provider will only perform drift detection of its value when present in a configuration.
Declaration
public Output<string> ExpirationDate { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Expired
If the current activation has expired.
Declaration
public Output<bool> Expired { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
IamRole
The IAM Role to attach to the managed instance.
Declaration
public Output<string> IamRole { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The default name of the registered managed instance.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RegistrationCount
The number of managed instances that are currently registered using this activation.
Declaration
public Output<int> RegistrationCount { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
RegistrationLimit
The maximum number of managed instances you want to register. The default value is 1 instance.
Declaration
public Output<int?> RegistrationLimit { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Tags
A map of tags to assign to the object.
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Methods
View SourceGet(String, Input<String>, ActivationState, CustomResourceOptions)
Get an existing Activation resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Activation Get(string name, Input<string> id, ActivationState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ActivationState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Activation |