Class CfnSecurityGroupIngress
The AWS::ElastiCache::SecurityGroupIngress type authorizes ingress to a cache security group from hosts in specified Amazon EC2 security groups.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.ElastiCache
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnSecurityGroupIngress : CfnResource, IInspectable
Syntax (vb)
Public Class CfnSecurityGroupIngress
Inherits CfnResource
Implements IInspectable
Remarks
For more information about ElastiCache security group ingress, go to AuthorizeCacheSecurityGroupIngress in the Amazon ElastiCache API Reference Guide .
Updates are not supported.
CloudformationResource: AWS::ElastiCache::SecurityGroupIngress
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ElastiCache;
var cfnSecurityGroupIngress = new CfnSecurityGroupIngress(this, "MyCfnSecurityGroupIngress", new CfnSecurityGroupIngressProps {
CacheSecurityGroupName = "cacheSecurityGroupName",
Ec2SecurityGroupName = "ec2SecurityGroupName",
// the properties below are optional
Ec2SecurityGroupOwnerId = "ec2SecurityGroupOwnerId"
});
Synopsis
Constructors
CfnSecurityGroupIngress(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnSecurityGroupIngress(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnSecurityGroupIngress(Construct, String, ICfnSecurityGroupIngressProps) |
Properties
AttrId | |
CacheSecurityGroupName | The name of the Cache Security Group to authorize. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Ec2SecurityGroupName | Name of the EC2 Security Group to include in the authorization. |
Ec2SecurityGroupOwnerId | Specifies the Amazon Account ID of the owner of the EC2 security group specified in the EC2SecurityGroupName property. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnSecurityGroupIngress(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnSecurityGroupIngress(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnSecurityGroupIngress(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnSecurityGroupIngress(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnSecurityGroupIngress(Construct, String, ICfnSecurityGroupIngressProps)
public CfnSecurityGroupIngress(Construct scope, string id, ICfnSecurityGroupIngressProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnSecurityGroupIngressProps
Resource properties.
Properties
AttrId
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
CacheSecurityGroupName
The name of the Cache Security Group to authorize.
public virtual string CacheSecurityGroupName { get; set; }
Property Value
System.String
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
Ec2SecurityGroupName
Name of the EC2 Security Group to include in the authorization.
public virtual string Ec2SecurityGroupName { get; set; }
Property Value
System.String
Ec2SecurityGroupOwnerId
Specifies the Amazon Account ID of the owner of the EC2 security group specified in the EC2SecurityGroupName property.
public virtual string Ec2SecurityGroupOwnerId { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>